The 'result' variable is only used on AIX - only bother assigning
it when we're building there.
Caught by clang-analyzer
Change-Id: I06848837282ff3f318474f55f2ee013255ad37c8
Reviewed-on: http://gerrit.openafs.org/2138
Reviewed-by: Russ Allbery <rra@stanford.edu>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
afs_int32 code;
afs_int32 err;
static char BUFFER[32768];
-#endif
int result;
+#endif
#ifdef AFS_PTHREAD_ENV
/* i'm pretty sure all the server apps now call osi_audit_init(),
if (!osi_audit_all && !auditout_open)
return 0;
+#ifdef AFS_AIX32_ENV
switch (errCode) {
case 0:
result = AUDIT_OK;
result = AUDIT_FAIL;
break;
}
+#endif
#ifdef AFS_PTHREAD_ENV
pthread_mutex_lock(&audit_lock);