]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
krb_udp.c warning fix
authorMarc Dionne <marc.c.dionne@gmail.com>
Tue, 10 Nov 2009 23:36:55 +0000 (18:36 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 11 Nov 2009 15:30:29 +0000 (07:30 -0800)
This file generates a warning because the left side of a variable
assignment is commented out.  Keep the effect of the line
(incrementing packet) but remove the unused casting and
reference, and remove the comments that date from the original
IBM source.
Leave a new comment in place in case the information is useful.

Adjust the Makefile and README.WARNINGS to account for the change.

Change-Id: I944e1c488e39411d32d700cba2d3ef567eddddb4
Reviewed-on: http://gerrit.openafs.org/804
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
README.WARNINGS
src/kauth/Makefile.in
src/kauth/krb_udp.c

index 651ae3f25893be7b3e2c928cea19663638a11da2..a449d954c922a96634093b7b7d2c20399874e0b9 100644 (file)
@@ -59,7 +59,6 @@ butc/tcudbprocs.c    : all         : ubik_Call
 butc/dump.c         : all           : pointer types (XXX)
 comerr/error_table.c : all           : Autogenerated file with unused labels
 kauth/kaserver.c     : all          : ExtendedCellInfo
-kauth/krb_udp.c      : all           : "Value computed is not used" - wierd
 kauth/admin_tools.c  : all           : ubik_Call nonsense
 kauth/authclient.c   : strict-proto  : ubik_Call nonsense
                      : all          : ubik_Call nonsense
index 79862e6b4b68a3e598e1180be0481b6d039019e3..455d1ae62d1e7260abe46fab536a8b0ea80ebc96 100644 (file)
@@ -221,7 +221,7 @@ kdb: kdb.o ${INCLS} ${LIBS} libkauth.a
 kdb.o: kdb.c AFS_component_version_number.o
 
 krb_udp.o: krb_udp.c kaserver.h kautils.h kauth.h prot.h ${TOP_INCDIR}/lwp.h AFS_component_version_number.o
-       $(CC) $(CFLAGS) @CFLAGS_NOERROR@ -c $<
+       $(CC) $(CFLAGS) -c $<
 
 krb_udp: krb_udp.o libkauth.a $(KLIBS)
        ${CC} ${LDFLAGS} -o krb_udp krb_udp.o libkauth.a $(KLIBS)
index a8318dd20f258b467491b35e8b698dcfd7eebf1d..7d516cf836d26a54b65fde343a4c219ed25290c9 100644 (file)
@@ -219,7 +219,6 @@ check_auth(struct packet *pkt, char *auth, int authLen,
     char *packet;
     des_key_schedule schedule;
     afs_int32 cksum;
-    /* unsigned char time_msec; */
     afs_int32 time_sec;
     int byteOrder = pkt->byteOrder;
 
@@ -236,7 +235,8 @@ check_auth(struct packet *pkt, char *auth, int authLen,
        return KABADTICKET;
     packet += strlen(packet) + 1;
     getint(cksum);
-    /* time_msec = */ *(unsigned char *)packet++;
+    /* Comments in the original IBM source suggest this byte was/is "time_msec" */
+    packet++;
     getint(time_sec);
     if ((packet - auth) > authLen)
        return KABADTICKET;