Module Name: src Committed By: joerg Date: Mon Aug 29 14:22:47 UTC 2011
Modified Files: src/usr.bin/rsh: rsh.c Log Message: static + __dead To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/usr.bin/rsh/rsh.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/rsh/rsh.c diff -u src/usr.bin/rsh/rsh.c:1.32 src/usr.bin/rsh/rsh.c:1.33 --- src/usr.bin/rsh/rsh.c:1.32 Sat Oct 2 09:24:16 2010 +++ src/usr.bin/rsh/rsh.c Mon Aug 29 14:22:46 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: rsh.c,v 1.32 2010/10/02 09:24:16 gson Exp $ */ +/* $NetBSD: rsh.c,v 1.33 2011/08/29 14:22:46 joerg Exp $ */ /*- * Copyright (c) 1983, 1990, 1993, 1994 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)rsh.c 8.4 (Berkeley) 4/29/95"; #else -__RCSID("$NetBSD: rsh.c,v 1.32 2010/10/02 09:24:16 gson Exp $"); +__RCSID("$NetBSD: rsh.c,v 1.33 2011/08/29 14:22:46 joerg Exp $"); #endif #endif /* not lint */ @@ -75,12 +75,11 @@ static int sigs[] = { SIGINT, SIGTERM, SIGQUIT }; -char *copyargs(char **); -void sendsig(int); -int checkfd(struct pollfd *, int); -void talk(int, sigset_t *, pid_t, int); -void usage(void); -int main(int, char **); +static char *copyargs(char **); +static void sendsig(int); +static int checkfd(struct pollfd *, int); +static void talk(int, sigset_t *, pid_t, int); +__dead static void usage(void); #ifdef IN_RCMD int orcmd(char **, int, const char *, const char *, const char *, int *); @@ -298,7 +297,7 @@ exit(0); } -int +static int checkfd(struct pollfd *fdp, int outfd) { int nr, nw; @@ -336,7 +335,7 @@ } } -void +static void talk(int nflag, sigset_t *oset, __pid_t pid, int rem) { int nr, nw, nfds; @@ -426,7 +425,7 @@ while (nfds); } -void +static void sendsig(int sig) { char signo; @@ -436,7 +435,7 @@ } -char * +static char * copyargs(char **argv) { int cc; @@ -458,7 +457,7 @@ return (args); } -void +static void usage(void) {