From a2aad6f4519cba38f3f0aaa03d108de4b0119be5 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Tue, 19 Feb 2013 15:23:25 +0000 Subject: [PATCH] kauth: Don't store the old signal routine If we're not going to make use of the return from signal() don't bother assigning it to a variable Change-Id: I03cae7ab91d49e90f150a9dc4358c173920adc28 Reviewed-on: http://gerrit.openafs.org/9173 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- src/kauth/user.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/kauth/user.c b/src/kauth/user.c index 49ef3bcc7..a463083b4 100644 --- a/src/kauth/user.c +++ b/src/kauth/user.c @@ -135,9 +135,6 @@ ka_UserAuthenticateGeneral(afs_int32 flags, char *name, char *instance, int remainingTime = 0; struct ktc_encryptionKey key; afs_int32 code, dosetpag = 0; -#if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_USR_LINUX20_ENV) && !defined(AFS_XBSD_ENV) || defined(AFS_FBSD_ENV) - void (*old)(int); -#endif if (reasonP) *reasonP = ""; @@ -171,7 +168,7 @@ ka_UserAuthenticateGeneral(afs_int32 flags, char *name, char *instance, #if !defined(AFS_NT40_ENV) && !defined(AFS_LINUX20_ENV) && !defined(AFS_USR_LINUX20_ENV) && (!defined(AFS_XBSD_ENV) || defined(AFS_FBSD_ENV)) /* handle smoothly the case where no AFS system calls exists (yet) */ - old = signal(SIGSYS, SIG_IGN); + (void)signal(SIGSYS, SIG_IGN); #endif #ifdef AFS_DECOSF_ENV (void)signal(SIGTRAP, SIG_IGN); -- 2.39.5