diff options
author | mks <mks@FreeBSD.org> | 1999-07-01 20:48:59 +0000 |
---|---|---|
committer | mks <mks@FreeBSD.org> | 1999-07-01 20:48:59 +0000 |
commit | 7707e35f12ca77282d0d391e98bf0db7bf1b734c (patch) | |
tree | 4a3901b074c8e4dd2814e00f82d841659871f67a /lib/libatm/cache_key.c | |
parent | 22e38b45b20e68f38edb59cfdd12a4422d39c6c4 (diff) | |
download | FreeBSD-src-7707e35f12ca77282d0d391e98bf0db7bf1b734c.zip FreeBSD-src-7707e35f12ca77282d0d391e98bf0db7bf1b734c.tar.gz |
Modify code to be -Wall'able.
PR: bin/11315
Diffstat (limited to 'lib/libatm/cache_key.c')
-rw-r--r-- | lib/libatm/cache_key.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/libatm/cache_key.c b/lib/libatm/cache_key.c index f0d6650..df0328b 100644 --- a/lib/libatm/cache_key.c +++ b/lib/libatm/cache_key.c @@ -23,7 +23,7 @@ * Copies of this Software may be made, however, the above copyright * notice must be reproduced on all copies. * - * @(#) $Id: cache_key.c,v 1.1 1998/07/09 21:45:27 johnc Exp $ + * @(#) $Id: cache_key.c,v 1.1 1998/09/15 08:22:33 phk Exp $ * */ @@ -36,14 +36,8 @@ * */ - -#ifndef lint -static char *RCSid = "@(#) $Id: cache_key.c,v 1.1 1998/07/09 21:45:27 johnc Exp $"; -#endif - #include <sys/types.h> #include <sys/param.h> - #include <sys/socket.h> #include <net/if.h> #include <netinet/in.h> @@ -55,8 +49,14 @@ static char *RCSid = "@(#) $Id: cache_key.c,v 1.1 1998/07/09 21:45:27 johnc Exp #include <netatm/atm_ioctl.h> #include <md5.h> +#include <string.h> + #include "libatm.h" +#ifndef lint +__RCSID("@(#) $Id: cache_key.c,v 1.1 1998/09/15 08:22:33 phk Exp $"); +#endif + /* * Compute an SCSP cache key @@ -78,8 +78,7 @@ scsp_cache_key(ap, ip, ol, op) int ol; char *op; { - int i, key, len; - char *cp; + int i, len; char buff[32], digest[16]; MD5_CTX context; |