mail(1): whitespace fixes

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

mail(1): whitespace fixes

Lauri Tirkkonen-2
spotted by git diff --check.

    bin/mail/aux.c:115: trailing whitespace.
    +         ;    
    bin/mail/head.c:258: space before tab in indent.
    +                   while ((c = (unsigned char)*wp++) && c != '"')
    bin/mail/head.c:259: space before tab in indent.
    +                           *wbuf++ = c;
    bin/mail/head.c:260: space before tab in indent.
    +                   if (c == '"')
    bin/mail/head.c:261: space before tab in indent.
    +                           *wbuf++ = c;
    bin/mail/head.c:264: space before tab in indent.
    +           }
    bin/mail/list.c:701: trailing whitespace.
    +    
    bin/mail/names.c:539: trailing whitespace.
    +            
    bin/mail/send.c:372: trailing whitespace.
    +    


diff --git a/usr.bin/mail/aux.c b/usr.bin/mail/aux.c
index a7bb8d67314..ff60406fc9e 100644
--- a/usr.bin/mail/aux.c
+++ b/usr.bin/mail/aux.c
@@ -112,7 +112,7 @@ argcount(char **argv)
  char **ap;
 
  for (ap = argv; *ap++ != NULL;)
- ;
+ ;
  return(ap - argv - 1);
 }
 
diff --git a/usr.bin/mail/head.c b/usr.bin/mail/head.c
index 3043e5c36db..3b1268a5cdd 100644
--- a/usr.bin/mail/head.c
+++ b/usr.bin/mail/head.c
@@ -255,13 +255,13 @@ nextword(char *wp, char *wbuf)
  while ((c = (unsigned char)*wp++) && c != ' ' && c != '\t') {
  *wbuf++ = c;
  if (c == '"') {
- while ((c = (unsigned char)*wp++) && c != '"')
- *wbuf++ = c;
- if (c == '"')
- *wbuf++ = c;
+ while ((c = (unsigned char)*wp++) && c != '"')
+ *wbuf++ = c;
+ if (c == '"')
+ *wbuf++ = c;
  else
  wp--;
- }
+ }
  }
  *wbuf = '\0';
  for (; c == ' ' || c == '\t'; c = (unsigned char)*wp++)
diff --git a/usr.bin/mail/list.c b/usr.bin/mail/list.c
index c870b9be9e7..b5d1b532c4f 100644
--- a/usr.bin/mail/list.c
+++ b/usr.bin/mail/list.c
@@ -698,7 +698,7 @@ matchsubj(char *str, int mesg)
  else
  strlcpy(lastscan, str, sizeof(lastscan));
  mp = &message[mesg-1];
-
+
  /*
  * Now look, ignoring case, for the word in the string.
  */
diff --git a/usr.bin/mail/names.c b/usr.bin/mail/names.c
index 5b07dc6817c..b8196bf8405 100644
--- a/usr.bin/mail/names.c
+++ b/usr.bin/mail/names.c
@@ -536,7 +536,7 @@ elide(struct name *names)
  np = np->n_flink;
  continue;
  }
-
+
  /*
  * Now t points to the last entry with the same name
  * as np.  Make np point beyond t.
diff --git a/usr.bin/mail/send.c b/usr.bin/mail/send.c
index 8f127ac837f..2ae8f233549 100644
--- a/usr.bin/mail/send.c
+++ b/usr.bin/mail/send.c
@@ -369,7 +369,7 @@ mail1(struct header *hp, int printheaders)
  }
  if ((cp = value("record")) != NULL)
  (void)savemail(expand(cp), mtf);
-
+
  /* Setup sendmail arguments. */
         *ap++ = "send-mail";
         *ap++ = "-i";

--
Lauri Tirkkonen | lotheac @ IRCnet