]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - login-utils/vipw.c
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / login-utils / vipw.c
index dfcdca2ed5c038d20e0945128c08f384aef5d837..665d77daabce4b2f4af234fe9b4fe75234706d46 100644 (file)
@@ -77,11 +77,9 @@ char tmptmp_file[FILENAMELEN]; /* very tmp file */
 
 void pw_error __P((char *, int, int));
 
-void
-copyfile(from, to)
-       register int from, to;
-{
-       register int nr, nw, off;
+static void
+copyfile(int from, int to) {
+       int nr, nw, off;
        char buf[8*1024];
        
        while ((nr = read(from, buf, sizeof(buf))) > 0)
@@ -94,9 +92,8 @@ copyfile(from, to)
 }
 
 
-void
-pw_init()
-{
+static void
+pw_init(void) {
        struct rlimit rlim;
 
        /* Unlimited resource limits. */
@@ -125,9 +122,8 @@ pw_init()
        (void)umask(0);
 }
 
-int
-pw_lock()
-{
+static int
+pw_lock(void) {
        int lockfd, fd, ret;
 
        /* 
@@ -179,9 +175,8 @@ pw_lock()
        return(1);
 }
 
-void
-pw_unlock()
-{
+static void
+pw_unlock(void) {
   char tmp[FILENAMELEN];
   
   sprintf(tmp, "%s%s", orig_file, ".OLD");
@@ -198,9 +193,8 @@ pw_unlock()
 }
 
 
-void
-pw_edit(int notsetuid)
-{
+static void
+pw_edit(int notsetuid) {
        int pstat;
        pid_t pid;
        char *p, *editor;