]> diplodocus.org Git - nmh/blobdiff - uip/rcvtty.c
mhbuildsbr.c: Don't free(3) string then print it; do reverse.
[nmh] / uip / rcvtty.c
index 181c422b83d73f6ad20d04d12a608f5f86d39d17..1e28623a20019367b74d5a51c0aff1e1fa7eacc9 100644 (file)
@@ -58,11 +58,6 @@ static int width = -1;
 static char *form = NULL;
 static char *format = NULL;
 
-/*
- * external prototypes
- */
-char *getusername(void);
-
 /*
  * static prototypes
  */
@@ -237,7 +232,7 @@ message_fd (char **vec)
     if (dup2 (fd, 1) == NOTOK || dup2 (fd, 2) == NOTOK)
        _exit (-1);
     closefds (3);
-    setpgid ((pid_t) 0, getpid ());    /* put in own process group */
+    setpgid(0, getpid());      /* put in own process group */
     if (execvp (vec[0], vec) == NOTOK) {
         _exit (-1);
     }