From a835a9cf9b46f54856eb83719291f9083926ce56 Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Fri, 16 Dec 2005 15:57:46 +0000 Subject: [PATCH] Fix compiler warnings in auth-token stuff. --- CASA.changes | 5 +++++ auth_token/PAM/pam_authtoken.c | 1 + auth_token/krb5_token/linux/util.c | 1 - auth_token/linux/config.c | 3 +-- auth_token/linux/internal.h | 1 + shsrc/lshsrc/mk-authkrb5token-ol | 2 +- shsrc/lshsrc/mk-authtoken-ol | 2 +- shsrc/lshsrc/mk-pamauthtoken-ol | 2 +- 8 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CASA.changes b/CASA.changes index bb2a395a..353ccac3 100644 --- a/CASA.changes +++ b/CASA.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 16 08:55:06 MST 2005 - jluciani@novell.com + +-Fixed compiler warnings in auth-token stuff. + ------------------------------------------------------------------- Wed Dec 14 10:57:46 MST 2005 - jnorman@novell.com diff --git a/auth_token/PAM/pam_authtoken.c b/auth_token/PAM/pam_authtoken.c index db152936..710a126f 100644 --- a/auth_token/PAM/pam_authtoken.c +++ b/auth_token/PAM/pam_authtoken.c @@ -26,6 +26,7 @@ #define _GNU_SOURCE +#include #include #ifndef LINUX diff --git a/auth_token/krb5_token/linux/util.c b/auth_token/krb5_token/linux/util.c index 557d8adc..9f8b5dbb 100644 --- a/auth_token/krb5_token/linux/util.c +++ b/auth_token/krb5_token/linux/util.c @@ -182,7 +182,6 @@ EncodeData( { CasaStatus retStatus; int encodedSize; - char *pBuffer; DbgTrace(3, "krb5_token -EncodeData- Start\n", 0); diff --git a/auth_token/linux/config.c b/auth_token/linux/config.c index 5f340f1f..3be44714 100644 --- a/auth_token/linux/config.c +++ b/auth_token/linux/config.c @@ -419,7 +419,7 @@ ConfigIf__GetEntryValue( DbgTrace(0, "auth_token -ConfigIf_GetEntryValue- Buffer allocation failure\n", 0); } - DbgTrace(2, "auth_token -ConfigIf_GetEntryValue- End, pValue = %08X\n", pValue); + DbgTrace(2, "auth_token -ConfigIf_GetEntryValue- End, pValue = %08X\n", (unsigned int) pValue); return pValue; } @@ -571,7 +571,6 @@ GetConfigInterface( char *pKey; char *pKeyEnd; char *pValue; - int keyLen, valueLen; ConfigKey *pConfigKey; // Attempt to find the key diff --git a/auth_token/linux/internal.h b/auth_token/linux/internal.h index d46d62d2..7ced3a2b 100644 --- a/auth_token/linux/internal.h +++ b/auth_token/linux/internal.h @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include diff --git a/shsrc/lshsrc/mk-authkrb5token-ol b/shsrc/lshsrc/mk-authkrb5token-ol index 909a669f..d2a6fd8d 100755 --- a/shsrc/lshsrc/mk-authkrb5token-ol +++ b/shsrc/lshsrc/mk-authkrb5token-ol @@ -20,7 +20,7 @@ fi cd $PR/auth_token/krb5_token/linux -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I\".\" -I\"../..\" -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall -fno-strict-aliasing " $2 $3 $4 $5) +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I\".\" -I\"../..\" -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall -Wno-format-extra-args -fno-strict-aliasing " $2 $3 $4 $5) RCODE=$? rm -f $COMMON_FILES if(test $RCODE != 0) diff --git a/shsrc/lshsrc/mk-authtoken-ol b/shsrc/lshsrc/mk-authtoken-ol index 29643858..2686ebdf 100755 --- a/shsrc/lshsrc/mk-authtoken-ol +++ b/shsrc/lshsrc/mk-authtoken-ol @@ -20,7 +20,7 @@ fi cd $PR/auth_token/linux -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I\".\" -I\"..\" -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall -fno-strict-aliasing " $2 $3 $4 $5) +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I\".\" -I\"..\" -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall -Wno-format-extra-args -fno-strict-aliasing " $2 $3 $4 $5) RCODE=$? rm -f $COMMON_FILES if(test $RCODE != 0) diff --git a/shsrc/lshsrc/mk-pamauthtoken-ol b/shsrc/lshsrc/mk-pamauthtoken-ol index a3f27fc2..5de2eb34 100755 --- a/shsrc/lshsrc/mk-pamauthtoken-ol +++ b/shsrc/lshsrc/mk-pamauthtoken-ol @@ -20,7 +20,7 @@ fi cd $PR/auth_token/PAM -(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I\".\" -I\"..\" -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall -fno-strict-aliasing " $2 $3 $4 $5) +(make -I $PR/make -f Makefile ROOT=$PR PLAT=lux MIN_NUM=\"$MIN_SSS_NO\" PROD_NUM=\"$MAJ_SSS_NO\" BLD_VER=\"$BLD_NO\" ARC=\"$ARCH_LIB\" XTRA=ndbg XTRA_CFLAGS="-I\".\" -I\"..\" -DSSCS_LINUX_PLAT_F -02 -fmessage-length=0 -Wall -Wno-format-extra-args -fno-strict-aliasing " $2 $3 $4 $5) RCODE=$? rm -f $COMMON_FILES if(test $RCODE != 0)