Mon Mar 16 00:43:33 2009 UTC ()
WARNS=4


(lukem)
diff -r1.23 -r1.24 src/libexec/rpc.rquotad/rquotad.c

cvs diff -r1.23 -r1.24 src/libexec/rpc.rquotad/rquotad.c (expand / switch to unified diff)

--- src/libexec/rpc.rquotad/rquotad.c 2006/05/09 20:18:07 1.23
+++ src/libexec/rpc.rquotad/rquotad.c 2009/03/16 00:43:33 1.24
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1/* $NetBSD: rquotad.c,v 1.23 2006/05/09 20:18:07 mrg Exp $ */ 1/* $NetBSD: rquotad.c,v 1.24 2009/03/16 00:43:33 lukem Exp $ */
2 2
3/* 3/*
4 * by Manuel Bouyer (bouyer@ensta.fr). Public domain. 4 * by Manuel Bouyer (bouyer@ensta.fr). Public domain.
5 */ 5 */
6 6
7#include <sys/cdefs.h> 7#include <sys/cdefs.h>
8#ifndef lint 8#ifndef lint
9__RCSID("$NetBSD: rquotad.c,v 1.23 2006/05/09 20:18:07 mrg Exp $"); 9__RCSID("$NetBSD: rquotad.c,v 1.24 2009/03/16 00:43:33 lukem Exp $");
10#endif 10#endif
11 11
12#include <sys/param.h> 12#include <sys/param.h>
13#include <sys/types.h> 13#include <sys/types.h>
14#include <sys/mount.h> 14#include <sys/mount.h>
15#include <sys/file.h> 15#include <sys/file.h>
16#include <sys/stat.h> 16#include <sys/stat.h>
17#include <sys/socket.h> 17#include <sys/socket.h>
18#include <signal.h> 18#include <signal.h>
19 19
20#include <stdio.h> 20#include <stdio.h>
21#include <fstab.h> 21#include <fstab.h>
22#include <ctype.h> 22#include <ctype.h>
@@ -46,27 +46,27 @@ int main(int, char *[]); @@ -46,27 +46,27 @@ int main(int, char *[]);
46/* 46/*
47 * structure containing informations about ufs filesystems 47 * structure containing informations about ufs filesystems
48 * initialised by initfs() 48 * initialised by initfs()
49 */ 49 */
50struct fs_stat { 50struct fs_stat {
51 struct fs_stat *fs_next; /* next element */ 51 struct fs_stat *fs_next; /* next element */
52 char *fs_file; /* mount point of the filesystem */ 52 char *fs_file; /* mount point of the filesystem */
53 char *uqfpathname; /* pathname of the user quota file */ 53 char *uqfpathname; /* pathname of the user quota file */
54 char *gqfpathname; /* pathname of the group quota file */ 54 char *gqfpathname; /* pathname of the group quota file */
55 dev_t st_dev; /* device of the filesystem */ 55 dev_t st_dev; /* device of the filesystem */
56} fs_stat; 56} fs_stat;
57struct fs_stat *fs_begin = NULL; 57struct fs_stat *fs_begin = NULL;
58 58
59char *qfextension[] = INITQFNAMES; 59const char *qfextension[] = INITQFNAMES;
60int from_inetd = 1; 60int from_inetd = 1;
61 61
62void  62void
63cleanup(int dummy) 63cleanup(int dummy)
64{ 64{
65 65
66 (void)rpcb_unset(RQUOTAPROG, RQUOTAVERS, NULL); 66 (void)rpcb_unset(RQUOTAPROG, RQUOTAVERS, NULL);
67 (void)rpcb_unset(RQUOTAPROG, EXT_RQUOTAVERS, NULL); 67 (void)rpcb_unset(RQUOTAPROG, EXT_RQUOTAVERS, NULL);
68 exit(0); 68 exit(0);
69} 69}
70 70
71int 71int
72main(int argc, char *argv[]) 72main(int argc, char *argv[])