]> granicus.if.org Git - neomutt/commitdiff
clang-format
authorRichard Russon <rich@flatcap.org>
Fri, 16 Nov 2018 12:33:00 +0000 (12:33 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 16 Nov 2018 12:33:00 +0000 (12:33 +0000)
email/url.c
nntp/nntp.c
pop/pop_lib.c

index 482549067ef0b544e18b9907e2f941c6507b9c44..a5092e4056f36c5cfe2a537df39454fb446d2d23 100644 (file)
@@ -179,7 +179,7 @@ struct Url *url_parse(const char *src)
   u->port = 0;
   u->path = NULL;
   STAILQ_INIT(&u->query_strings);
-  u->src = (char *)u + sizeof(struct Url);
+  u->src = (char *) u + sizeof(struct Url);
   mutt_str_strfcpy(u->src, src, srcsize);
 
   char *it = u->src;
index b985911a9cd6773982cf1d4fd0bb72e5491588ec..489d6ca4149a8b915efb51eb796c34fa8e4d27cb 100644 (file)
@@ -2458,8 +2458,7 @@ static int nntp_mbox_open(struct Context *ctx)
   anum_t first, last, count = 0;
 
   struct Url *url = url_parse(m->path);
-  if (!url || !url->host || !url->path ||
-      !(url->scheme == U_NNTP || url->scheme == U_NNTPS))
+  if (!url || !url->host || !url->path || !(url->scheme == U_NNTP || url->scheme == U_NNTPS))
   {
     url_free(&url);
     mutt_error(_("%s is an invalid newsgroup specification"), m->path);
index 9a7468c1347acc2a1cf504303707531276a7d438..e51e5f17a2b70103305eabe6ff7fa33e3ba2511b 100644 (file)
@@ -72,8 +72,8 @@ int pop_parse_path(const char *path, struct ConnAccount *acct)
 
   struct Url *url = url_parse(path);
 
-  if (!url || ((url->scheme != U_POP) && (url->scheme != U_POPS)) || !url->host ||
-      mutt_account_fromurl(acct, url) < 0)
+  if (!url || ((url->scheme != U_POP) && (url->scheme != U_POPS)) ||
+      !url->host || mutt_account_fromurl(acct, url) < 0)
   {
     url_free(&url);
     mutt_error(_("Invalid POP URL: %s"), path);
@@ -83,7 +83,8 @@ int pop_parse_path(const char *path, struct ConnAccount *acct)
   if (url->scheme == U_POPS)
     acct->flags |= MUTT_ACCT_SSL;
 
-  struct servent *service = getservbyname((url->scheme == U_POP) ? "pop3" : "pop3s", "tcp");
+  struct servent *service =
+      getservbyname((url->scheme == U_POP) ? "pop3" : "pop3s", "tcp");
   if (acct->port == 0)
   {
     if (service)