summaryrefslogtreecommitdiffstats
path: root/utils/statd/statd.c
diff options
context:
space:
mode:
authorGreg Banks <gnb@melbourne.sgi.com>2006-06-22 18:01:10 +1000
committerGreg Banks <gnb@melbourne.sgi.com>2006-06-22 18:01:10 +1000
commit93608a52655abf5ac23404c4b5cc05fe575a9c04 (patch)
tree5d4debc42ac6667427c5f9f8f6e62a5e74906465 /utils/statd/statd.c
parenta07343ee0da4f0974a23b673ae1b0d482c7426a1 (diff)
downloadnfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.tar.gz
nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.tar.xz
nfs-utils-93608a52655abf5ac23404c4b5cc05fe575a9c04.zip
Fix a number of the easier compile warnings: unused variables,
unused labels, constness, signedness.
Diffstat (limited to 'utils/statd/statd.c')
-rw-r--r--utils/statd/statd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/statd/statd.c b/utils/statd/statd.c
index 8ebb808..c92e12f 100644
--- a/utils/statd/statd.c
+++ b/utils/statd/statd.c
@@ -51,7 +51,7 @@ int run_mode = 0; /* foreground logging mode */
* two copies of each - one in main(), one static in log.c...
* It also eliminates the 256-char static in log.c */
char *name_p = NULL;
-char *version_p = NULL;
+const char *version_p = NULL;
/* PRC: a high-availability callout program can be specified with -H
* When this is done, the program will receive callouts whenever clients
@@ -374,7 +374,7 @@ int main (int argc, char **argv)
#endif
if (!(run_mode & MODE_NODAEMON)) {
- int filedes, fdmax, tempfd;
+ int tempfd;
if (pipe(pipefds)<0) {
perror("statd: unable to create pipe");