SCCS-vsn: usr.bin/tip/cu.c 5.5
SCCS-vsn: usr.bin/tip/tip.c 5.6
-static char sccsid[] = "@(#)cu.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)cu.c 5.5 (Berkeley) %G%";
#endif not lint
#include "tip.h"
#endif not lint
#include "tip.h"
* The "cu" host name is used to define the
* attributes of the generic dialer.
*/
* The "cu" host name is used to define the
* attributes of the generic dialer.
*/
- if ((i = hunt(sprintf(sbuf, "cu%d", BR))) == 0) {
+ (void)sprintf(sbuf, "cu%d", BR);
+ if ((i = hunt(sbuf)) == 0) {
printf("all ports busy\n");
exit(3);
}
printf("all ports busy\n");
exit(3);
}
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)tip.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)tip.c 5.6 (Berkeley) %G%";
int cleanup();
char *sname();
char PNbuf[256]; /* This limits the size of a number */
int cleanup();
char *sname();
char PNbuf[256]; /* This limits the size of a number */
main(argc, argv)
char *argv[];
main(argc, argv)
char *argv[];
for (p = system; *p; p++)
*p = '\0';
PN = PNbuf;
for (p = system; *p; p++)
*p = '\0';
PN = PNbuf;
- system = sprintf(sbuf, "tip%d", BR);
+ (void)sprintf(sbuf, "tip%d", BR);
+ system = sbuf;
notnumber:
signal(SIGINT, cleanup);
notnumber:
signal(SIGINT, cleanup);