From 5dce817d40bc69684451e88fe8a0f1078f1f3880 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Wed, 18 Jul 2012 10:22:07 +0100 Subject: [PATCH] ptserver: Make ptclient build again Make the ptclient utility build again, and add it to the ptserver Makefile so that it is built by default and, hopefully, won't bitrot again. Change-Id: I888a9d4392b62ecb2d7556694400a2853658052a Reviewed-on: http://gerrit.openafs.org/7841 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/ptserver/Makefile.in | 2 +- src/ptserver/ptclient.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ptserver/Makefile.in b/src/ptserver/Makefile.in index 5f8589fe3..82e5f128c 100644 --- a/src/ptserver/Makefile.in +++ b/src/ptserver/Makefile.in @@ -44,7 +44,7 @@ LIBS= ${TOP_LIBDIR}/libubik.a \ all: ptserver pts pt_util db_verify ${TOP_LIBDIR}/libprot.a \ - depinstall readgroup readpwd testpt + depinstall readgroup readpwd testpt ptclient generated: \ pterror.h pterror.c \ diff --git a/src/ptserver/ptclient.c b/src/ptserver/ptclient.c index 9457032fc..019d29b0f 100644 --- a/src/ptserver/ptclient.c +++ b/src/ptserver/ptclient.c @@ -48,7 +48,7 @@ static char *lineProgress; #ifndef AFS_PTHREAD_ENV int -osi_audit() +osi_audit(void) { /* OK, this REALLY sucks bigtime, but I can't tell who is calling * afsconf_CheckAuth easily, and only *SERVERS* should be calling osi_audit @@ -243,7 +243,7 @@ main(int argc, char **argv) if (code) { afs_com_err(whoami, PRBADARG, "error reading opcode in line '%s', got '%.*s'", line, - sizeof(op), op); + (int) sizeof(op), op); exit(1); } if (strlen(op) == 0) @@ -698,6 +698,7 @@ main(int argc, char **argv) else printf("Unknown op: '%s'! ? for help\n", op); } + return 0; } -- 2.39.5