Removed the space between function names and the opening parenthesis.
[mmh] / uip / new.c
index cb2abc4..9236662 100644 (file)
--- a/uip/new.c
+++ b/uip/new.c
@@ -57,11 +57,11 @@ count_messages(char *field)
        field = getcpy(field);
 
        /* copied from seq_read.c:seq_init */
        field = getcpy(field);
 
        /* copied from seq_read.c:seq_init */
-       for (ap = brkstring (field, " ", "\n"); *ap; ap++) {
+       for (ap = brkstring(field, " ", "\n"); *ap; ap++) {
                if ((cp = strchr(*ap, '-')))
                        *cp++ = '\0';
                if ((cp = strchr(*ap, '-')))
                        *cp++ = '\0';
-               if ((j = m_atoi (*ap)) > 0) {
-                       k = cp ? m_atoi (cp) : j;
+               if ((j = m_atoi(*ap)) > 0) {
+                       k = cp ? m_atoi(cp) : j;
 
                        total += k - j + 1;
                }
 
                        total += k - j + 1;
                }
@@ -108,18 +108,19 @@ get_msgnums(char *folder, char *sequences[])
 
        /* copied from seq_read.c:seq_public */
        for (state = FLD;;) {
 
        /* copied from seq_read.c:seq_public */
        for (state = FLD;;) {
-               switch (state = m_getfld (state, name, field, sizeof(field), fp)) {
+               switch (state = m_getfld(state, name, field, sizeof(field),
+                               fp)) {
                        case FLD:
                        case FLDPLUS:
                        case FLDEOF:
                                if (state == FLDPLUS) {
                        case FLD:
                        case FLDPLUS:
                        case FLDEOF:
                                if (state == FLDPLUS) {
-                                       cp = getcpy (field);
+                                       cp = getcpy(field);
                                        while (state == FLDPLUS) {
                                        while (state == FLDPLUS) {
-                                               state = m_getfld (state, name,
+                                               state = m_getfld(state, name,
                                                                field,
                                                                sizeof(field),
                                                                fp);
                                                                field,
                                                                sizeof(field),
                                                                fp);
-                                               cp = add (field, cp);
+                                               cp = add(field, cp);
                                        }
 
                                        /*
                                        }
 
                                        /*
@@ -139,7 +140,7 @@ get_msgnums(char *folder, char *sequences[])
                                                        free(this_msgnums);
                                                }
                                        }
                                                        free(this_msgnums);
                                                }
                                        }
-                                       free (cp);
+                                       free(cp);
                                } else {
                                        /* and here */
                                        if (seq_in_list(name, sequences)) {
                                } else {
                                        /* and here */
                                        if (seq_in_list(name, sequences)) {
@@ -161,14 +162,14 @@ get_msgnums(char *folder, char *sequences[])
 
                        case BODY:
                        case BODYEOF:
 
                        case BODY:
                        case BODYEOF:
-                               adios (NULL, "no blank lines are permitted in %s", seqfile);
+                               adios(NULL, "no blank lines are permitted in %s", seqfile);
                                /* fall */
 
                        case FILEEOF:
                                break;
 
                        default:
                                /* fall */
 
                        case FILEEOF:
                                break;
 
                        default:
-                               adios (NULL, "%s is poorly formatted", seqfile);
+                               adios(NULL, "%s is poorly formatted", seqfile);
                }
                break;  /* break from for loop */
        }
                }
                break;  /* break from for loop */
        }
@@ -399,11 +400,10 @@ doit(char *cur, char *folders, char *sequences[])
                        count = count_messages(node->n_field);
                        total += count;
 
                        count = count_messages(node->n_field);
                        total += count;
 
-                       printf("%-*s %6d.%c %s\n",
-                                  (int) folder_len, node->n_name,
-                                  count,
-                                  (strcmp(node->n_name, cur) == 0 ? '*' : ' '),
-                                  node->n_field);
+                       printf("%-*s %6d.%c %s\n", (int) folder_len,
+                               node->n_name, count,
+                               (strcmp(node->n_name, cur) == 0 ? '*' : ' '),
+                               node->n_field);
                }
        }
 
                }
        }
 
@@ -441,7 +441,7 @@ main(int argc, char **argv)
        /* read user profile/context */
        context_read();
 
        /* read user profile/context */
        context_read();
 
-       arguments = getarguments (invo_name, argc, argv, 1);
+       arguments = getarguments(invo_name, argc, argv, 1);
        argp = arguments;
 
        /*
        argp = arguments;
 
        /*
@@ -449,22 +449,22 @@ main(int argc, char **argv)
        */
        while ((cp = *argp++)) {
                if (*cp == '-') {
        */
        while ((cp = *argp++)) {
                if (*cp == '-') {
-                       switch (smatch (++cp, switches)) {
+                       switch (smatch(++cp, switches)) {
                        case AMBIGSW:
                        case AMBIGSW:
-                               ambigsw (cp, switches);
-                               done (1);
+                               ambigsw(cp, switches);
+                               done(1);
                        case UNKWNSW:
                        case UNKWNSW:
-                               adios (NULL, "-%s unknown", cp);
+                               adios(NULL, "-%s unknown", cp);
 
                        case HELPSW:
 
                        case HELPSW:
-                               snprintf (help, sizeof(help),
+                               snprintf(help, sizeof(help),
                                                "%s [switches] [sequences]",
                                                invo_name);
                                                "%s [switches] [sequences]",
                                                invo_name);
-                               print_help (help, switches, 1);
-                               done (1);
+                               print_help(help, switches, 1);
+                               done(1);
                        case VERSIONSW:
                                print_version(invo_name);
                        case VERSIONSW:
                                print_version(invo_name);
-                               done (1);
+                               done(1);
 
                        case FOLDERSSW:
                                if (!(folders = *argp++) || *folders == '-')
 
                        case FOLDERSSW:
                                if (!(folders = *argp++) || *folders == '-')
@@ -539,6 +539,6 @@ main(int argc, char **argv)
 
        context_save();
 
 
        context_save();
 
-       done (0);
+       done(0);
        return 1;
 }
        return 1;
 }