error needs to take additional arguments (jason@opal)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 4 Jan 1986 08:27:32 +0000 (00:27 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 4 Jan 1986 08:27:32 +0000 (00:27 -0800)
SCCS-vsn: libexec/rshd/rshd.c 5.5

usr/src/libexec/rshd/rshd.c

index 638b271..d1250ad 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)rshd.c     5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)rshd.c     5.5 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -239,13 +239,14 @@ protofail:
 }
 
 /* VARARGS 1 */
 }
 
 /* VARARGS 1 */
-error(fmt)
+error(fmt, a1, a2, a3)
        char *fmt;
        char *fmt;
+       int a1, a2, a3;
 {
        char buf[BUFSIZ];
 
        buf[0] = 1;
 {
        char buf[BUFSIZ];
 
        buf[0] = 1;
-       (void) sprintf(buf+1, fmt);
+       (void) sprintf(buf+1, fmt, a1, a2, a3);
        (void) write(2, buf, strlen(buf));
 }
 
        (void) write(2, buf, strlen(buf));
 }