]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
aix-prototyping-fixes-20060201
authorTom Keiser <tkeiser@gmail.com>
Wed, 1 Feb 2006 16:20:07 +0000 (16:20 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 1 Feb 2006 16:20:07 +0000 (16:20 +0000)
FIXES 26102

fix some prototypes and enable prototype enforcement for aix

src/bozo/bnode.c
src/cf/osconf.m4
src/venus/up.c

index a4ba07e48193fb127949afd5b22f0dcc5311b36c..952e59231defda2814eadca6c977d1f5a3edbcec 100644 (file)
@@ -738,12 +738,10 @@ hdl_notifier(struct bnode_proc *tp)
 
 #if defined(AFS_HPUX_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI51_ENV)
        ec = setsid();
-#else
-#ifdef AFS_LINUX20_ENV
+#elif defined(AFS_LINUX20_ENV) || defined(AFS_AIX_ENV)
        ec = setpgrp();
 #else
        ec = setpgrp(0, 0);
-#endif
 #endif
        fout = popen(tb->notifier, "w");
        if (fout == NULL) {
index 76ec11772ece739aeb3214c4193ac63ecc5f6087..6e2a18c93d072cefa8d626b67f090ca437c999e3 100644 (file)
@@ -488,7 +488,7 @@ case $AFS_SYSNAME in
                MT_LIBS="-lpthreads"
                SHLIB_SUFFIX="o"
                TXLIBS="-lcurses"
-               XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+               XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
                XLIBS="${LIB_AFSDB} -ldl"
                SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
                AIX64="#"
@@ -504,7 +504,7 @@ case $AFS_SYSNAME in
                MT_LIBS="-lpthreads"
                SHLIB_SUFFIX="o"
                TXLIBS="-lcurses"
-               XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+               XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
                XLIBS="${LIB_AFSDB} -ldl"
                SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
                AIX64=""
@@ -519,7 +519,7 @@ case $AFS_SYSNAME in
                MT_LIBS="-lpthreads"
                SHLIB_SUFFIX="o"
                TXLIBS="-lcurses"
-               XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+               XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
                XLIBS="${LIB_AFSDB} -ldl"
                SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
                AIX64=""
@@ -534,7 +534,7 @@ case $AFS_SYSNAME in
                MT_LIBS="-lpthreads"
                SHLIB_SUFFIX="o"
                TXLIBS="-lcurses"
-               XCFLAGS="-K -D_NO_PROTO -D_NONSTD_TYPES -D_MBI=void"
+               XCFLAGS="-K -D_NONSTD_TYPES -D_MBI=void"
                XLIBS="${LIB_AFSDB} -ldl"
                SHLIB_LINKER="${MT_CC} -bM:SRE -berok"
                AIX64=""
index 2f0520e2e6ee60d85c601857b8d4f89414f99b40..5ffc92fc4a7882e244765e0cb7914a472fb8e024 100644 (file)
@@ -83,8 +83,11 @@ struct OldAcl {
     char data[1];
 };
 
-void ScanArgs(int, char *[]);
-int Copy(char *, char *, short, int);
+static void ScanArgs(int argc, char *argv[]);
+static short MakeParent(char *file, afs_int32 owner);
+static int Copy(char *file1, char *file2, short recursive, int level);
+static int isMountPoint(char *name, struct ViceIoctl *blob);
+
 
 /* ************************************************************ */
 /*                                                              */
@@ -118,14 +121,14 @@ main(int argc, char *argv[])
 
     /* now read each line of the CopyList */
     if (Copy(file1, file2, !oneLevel, 0))
-       exit(1);                /* some type of failure */
+       return(1);              /* some type of failure */
 
-    exit(0);
+    return(0);
 }
 
 
 #define USAGE "usage: up [-v1frxm] from to\n"
-void
+static void
 ScanArgs(int argc, char *argv[])
 {
     /* skip program name */
@@ -186,7 +189,7 @@ ScanArgs(int argc, char *argv[])
  *     1 if it exists, 0 otherwise.  Note: the owner argument
  *     is a hack.  All directories made will have this owner.
  */
-short
+static short
 MakeParent(char *file, afs_int32 owner)
 {
     char parent[MAXPATHLEN];
@@ -225,7 +228,7 @@ MakeParent(char *file, afs_int32 owner)
  *     This does the bulk of the work of the program.  Handle one file,
  *     possibly copying subfiles if this is a directory
  */
-int
+static int
 Copy(char *file1, char *file2, short recursive, int level)
 {
     struct stat s1, s2;                /*Stat blocks */
@@ -712,7 +715,7 @@ Copy(char *file1, char *file2, short recursive, int level)
 }                              /*Copy */
 
 
-int
+static int
 isMountPoint(char *name, struct ViceIoctl *blob)
 {
     afs_int32 code;