Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/rsh static + __dead



details:   https://anonhg.NetBSD.org/src/rev/7e965ea918f0
branches:  trunk
changeset: 768958:7e965ea918f0
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 29 14:22:46 2011 +0000

description:
static + __dead

diffstat:

 usr.bin/rsh/rsh.c |  25 ++++++++++++-------------
 1 files changed, 12 insertions(+), 13 deletions(-)

diffs (81 lines):

diff -r 08650fa25178 -r 7e965ea918f0 usr.bin/rsh/rsh.c
--- a/usr.bin/rsh/rsh.c Mon Aug 29 14:21:50 2011 +0000
+++ b/usr.bin/rsh/rsh.c Mon Aug 29 14:22:46 2011 +0000
@@ -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)
 {
 



Home | Main Index | Thread Index | Old Index