projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
error needs to take additional arguments (jason@opal)
[unix-history]
/
usr
/
src
/
libexec
/
rshd
/
rshd.c
diff --git
a/usr/src/libexec/rshd/rshd.c
b/usr/src/libexec/rshd/rshd.c
index
638b271
..
d1250ad
100644
(file)
--- a/
usr/src/libexec/rshd/rshd.c
+++ b/
usr/src/libexec/rshd/rshd.c
@@
-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));
}