]> diplodocus.org Git - nmh/blobdiff - uip/post.c
Added volatile qualifier in a couple of places to get rid of
[nmh] / uip / post.c
index 69f5b82103f1a7109bacdb9793ca8f5ce767477b..aadc6271a00fdf89ffbfdb72824afee91e1d9240 100644 (file)
@@ -496,17 +496,9 @@ main (int argc, char **argv)
                    continue;
 
                case CREDENTIALSSW: {
-                   /* post doesn't read the profile, so insert credentials
-                      entry the hard way. */
-                   struct node *np = (struct node *) mh_xmalloc (sizeof *np);
-
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);
-                   np->n_name = "credentials";
-                   np->n_field = cp;
-                   np->n_context = 0;
-                   np->n_next = m_defs;
-                   m_defs = np;
+                   add_profile_entry ("credentials", cp);
                    continue;
                }