Source-Changes-HG archive

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

[src/trunk]: src/libexec/rpc.rquotad staticfy. Use __dead.



details:   https://anonhg.NetBSD.org/src/rev/2f2f4d7ef056
branches:  trunk
changeset: 768785:2f2f4d7ef056
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Aug 27 15:46:59 2011 +0000

description:
staticfy. Use __dead.

diffstat:

 libexec/rpc.rquotad/rquotad.c |  23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diffs (73 lines):

diff -r 59acd037d453 -r 2f2f4d7ef056 libexec/rpc.rquotad/rquotad.c
--- a/libexec/rpc.rquotad/rquotad.c     Sat Aug 27 15:45:52 2011 +0000
+++ b/libexec/rpc.rquotad/rquotad.c     Sat Aug 27 15:46:59 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rquotad.c,v 1.27 2011/03/24 17:05:43 bouyer Exp $      */
+/*     $NetBSD: rquotad.c,v 1.28 2011/08/27 15:46:59 joerg Exp $       */
 
 /*
  * by Manuel Bouyer (bouyer%ensta.fr@localhost). Public domain.
@@ -6,7 +6,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: rquotad.c,v 1.27 2011/03/24 17:05:43 bouyer Exp $");
+__RCSID("$NetBSD: rquotad.c,v 1.28 2011/08/27 15:46:59 joerg Exp $");
 #endif
 
 #include <sys/param.h>
@@ -35,13 +35,12 @@
 #include <rpcsvc/rquota.h>
 #include <arpa/inet.h>
 
-void rquota_service(struct svc_req *request, SVCXPRT *transp);
-void ext_rquota_service(struct svc_req *request, SVCXPRT *transp);
-void sendquota(struct svc_req *request, int vers, SVCXPRT *transp);
-void cleanup(int);
-int main(int, char *[]);
+static void rquota_service(struct svc_req *request, SVCXPRT *transp);
+static void ext_rquota_service(struct svc_req *request, SVCXPRT *transp);
+static void sendquota(struct svc_req *request, int vers, SVCXPRT *transp);
+__dead static void cleanup(int);
 
-int from_inetd = 1;
+static int from_inetd = 1;
 
 static uint32_t
 qlim2rqlim(uint64_t lim)
@@ -52,7 +51,7 @@
                return (lim + 1);
 }
 
-void 
+static void 
 cleanup(int dummy)
 {
 
@@ -122,7 +121,7 @@
        exit(1);
 }
 
-void 
+static void
 rquota_service(struct svc_req *request, SVCXPRT *transp)
 {
        switch (request->rq_proc) {
@@ -143,7 +142,7 @@
                exit(0);
 }
 
-void 
+static void
 ext_rquota_service(struct svc_req *request, SVCXPRT *transp)
 {
        switch (request->rq_proc) {
@@ -165,7 +164,7 @@
 }
 
 /* read quota for the specified id, and send it */
-void 
+static void
 sendquota(struct svc_req *request, int vers, SVCXPRT *transp)
 {
        struct getquota_args getq_args;



Home | Main Index | Thread Index | Old Index