| @@ -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 | */ |
50 | struct fs_stat { | | 50 | struct 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; |
57 | struct fs_stat *fs_begin = NULL; | | 57 | struct fs_stat *fs_begin = NULL; |
58 | | | 58 | |
59 | char *qfextension[] = INITQFNAMES; | | 59 | const char *qfextension[] = INITQFNAMES; |
60 | int from_inetd = 1; | | 60 | int from_inetd = 1; |
61 | | | 61 | |
62 | void | | 62 | void |
63 | cleanup(int dummy) | | 63 | cleanup(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 | |
71 | int | | 71 | int |
72 | main(int argc, char *argv[]) | | 72 | main(int argc, char *argv[]) |