]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Remove pr_PrintEntry from public headers
authorSimon Wilkinson <sxw@inf.ed.ac.uk>
Fri, 10 Jul 2009 12:40:56 +0000 (13:40 +0100)
committerRuss Allbery <rra@stanford.edu>
Fri, 10 Jul 2009 16:59:52 +0000 (10:59 -0600)
pr_PrintEntry isn't used outside of the ptserver directory, and requires
struct prentry, which is defined internally, so remove it from ptuser.h,
and create a new internal header to hold it.

Also, tidy up some type mismatch warnings by making static strings const
char *

Reviewed-on: http://gerrit.openafs.org/22
Reviewed-by: Russ Allbery <rra@stanford.edu>
Verified-by: Russ Allbery <rra@stanford.edu>
src/ptserver/db_verify.c
src/ptserver/display.c
src/ptserver/display.h [new file with mode: 0644]
src/ptserver/pt_util.c
src/ptserver/ptserver.c
src/ptserver/ptuser.h

index c5e53bec4281026397ade04a4f69e50c2d985781..ce363785d0446a53be0771736aeb6b6608afe0b5 100644 (file)
 #include "pterror.h"
 #include "ptserver.h"
 #include "ptuser.h"
+#include "display.h"
 
 struct prheader cheader;
 int fd;
-char *pr_dbaseName;
+const char *pr_dbaseName;
 char *whoami = "db_verify";
 #define UBIK_HEADERSIZE 64
 
index 25451c764b13bc230950866cfd997108655880b2..be5be10a589f6a2c712a721d5518d87e0d9afd3d 100644 (file)
@@ -22,6 +22,7 @@
 #include <stdio.h>
 #include "ptserver.h"
 
+#include "display.h"
 
 #ifdef PR_REMEMBER_TIMES
 
diff --git a/src/ptserver/display.h b/src/ptserver/display.h
new file mode 100644 (file)
index 0000000..177b7c5
--- /dev/null
@@ -0,0 +1,16 @@
+/*
+ * Copyright 2000, International Business Machines Corporation and others.
+ * All Rights Reserved.
+ *
+ * This software has been released under the terms of the IBM Public
+ * License.  For details, see the LICENSE file in the top-level source
+ * directory or online at http://www.openafs.org/dl/license10.html
+ */
+
+#ifndef _PTSERVER_DISPLAY_H
+#define _PTSERVER_DISPLAY_H
+
+extern int pr_PrintEntry(FILE *f, int hostOrder, afs_int32 ea,
+                        struct prentry *e, int indent);
+
+#endif
index a442e64757f07765ea9e6f391f763190112d919d..4faf2edb5a1a82de12361fb6fbc884cea5dd902f 100644 (file)
@@ -148,7 +148,7 @@ CommandProc(register struct cmd_syndesc *a_as, void *arock)
     struct prentry uentry, gentry;
     struct ubik_hdr *uh;
     char *dfile = 0;
-    char *pbase = AFSDIR_SERVER_PRDB_FILEPATH;
+    const char *pbase = AFSDIR_SERVER_PRDB_FILEPATH;
     char *pfile = NULL;
     char pbuffer[1028];
     struct cmd_parmdesc *tparm;
index 43c206aedf2b71d59f811d5de1f314db2f6fa8ea..6758b0858cc966278f545987a2fb0dc04afd9ba9 100644 (file)
@@ -210,7 +210,7 @@ main(int argc, char **argv)
     char hostname[64];
     struct rx_service *tservice;
     struct rx_securityClass *sc[3];
-    extern int RXSTATS_ExecuteRequest();
+    extern int RXSTATS_ExecuteRequest(struct rx_call *);
 #if 0
     struct ktc_encryptionKey tkey;
 #endif
index 75fd71fb44b3530ec98788221b62d367ffbfda74..8653febe7f65eace8f0478a6ba880892273f685d 100644 (file)
 
 #include "afs/ptint.h"
 
-/* display.c */
-extern int pr_PrintEntry(FILE *f, int hostOrder, afs_int32 ea, 
-                        struct prentry *e, int indent);
 /* ptuser.c */
 extern afs_int32 pr_Initialize(afs_int32 secLevel, const char *confDir, 
                               char *cell);