ptclient: enable pthreaded support 00/13500/2
authorMark Vitale <mvitale@sinenomine.net>
Mon, 11 Feb 2019 07:54:31 +0000 (02:54 -0500)
committerBenjamin Kaduk <kaduk@mit.edu>
Fri, 22 Feb 2019 15:07:13 +0000 (10:07 -0500)
ptclient has been essentially disabled for pthreads since the ibm-1.0
release.  Remove the conditionals to make a functional pthreaded
ptclient.

Change-Id: Ib0f60b3ab395827b73e5646b014e28ab09607e0e
Reviewed-on: https://gerrit.openafs.org/13500
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>

src/ptserver/ptclient.c
src/tptserver/.gitignore

index 416e4c7..c7347a8 100644 (file)
@@ -34,11 +34,9 @@ char confdir[AFSDIR_PATH_MAX];
 
 char *whoami;
 
-#ifndef AFS_PTHREAD_ENV
 extern struct ubik_client *pruclient;
 static void skip(char **);
 static void PrintHelp(void);
-#endif
 
 static int ignoreExist = 0;
 static char line[256];
@@ -46,7 +44,6 @@ static char *lineProgress;
 
 #define WHITESPACE " \t\n"
 
-#ifndef AFS_PTHREAD_ENV
 int
 osi_audit(void)
 {
@@ -56,7 +53,6 @@ osi_audit(void)
  */
     return 0;
 }
-#endif /* !AFS_PTHREAD_ENV */
 
 int
 GetToken(char *format, afs_int32 *l)
@@ -147,7 +143,6 @@ PrintEntry(afs_int32 ea, struct prentry *e, int indent)
     return pr_PrintEntry(stdout, /*host order */ 1, ea, e, indent);
 }
 
-#ifndef AFS_PTHREAD_ENV
 
 /* main program */
 
@@ -740,4 +735,3 @@ skip(char **s)
     while (**s == ' ')
        (*s)++;
 }
-#endif /* !AFS_PTHREAD_ENV */
index e993f84..7f64205 100644 (file)
@@ -4,6 +4,7 @@
 
 /db_verify
 /pt_util
+/ptclient
 /pterror.c
 /pterror.h
 /ptint.h