From 398600d1170d5340e63f5ec1ea09d42c4e83cd64 Mon Sep 17 00:00:00 2001 From: hjp Date: Fri, 19 Jan 2001 18:47:33 +0000 Subject: [PATCH] Eliminated some warnings by gcc. --- setperm/setperm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setperm/setperm.c b/setperm/setperm.c index aac1878..223a7a8 100644 --- a/setperm/setperm.c +++ b/setperm/setperm.c @@ -8,7 +8,7 @@ char *cmnd; -void usage(void) { +static void usage(void) { fprintf(stderr, "Usage: %s -F protofile file ...\n", cmnd); exit(1); } @@ -19,7 +19,7 @@ typedef struct { mode_t mode; } perm_t; -int getperm(const char *filename, perm_t *permp) { +static int getperm(const char *filename, perm_t *permp) { struct stat sb; if (stat(filename, &sb) == -1) return -1; @@ -29,7 +29,7 @@ int getperm(const char *filename, perm_t *permp) { return 0; } -int setperm(const char *filename, perm_t perm) { +static int setperm(const char *filename, perm_t perm) { int rc = 0; if (chown(filename, perm.user, perm.group) == -1) {