]> git.decadent.org.uk Git - nfs-utils.git/commit - support/misc/tcpwrapper.c
tcpwrapper: Fix signage problems in the tcp_wrappers hash function
authorChuck Lever <chuck.lever@oracle.com>
Sun, 17 Jan 2010 21:50:29 +0000 (16:50 -0500)
committerSteve Dickson <steved@redhat.com>
Sun, 17 Jan 2010 21:50:29 +0000 (16:50 -0500)
commit90c944c9cc1fde845caa29b98c2864eb32660403
tree69801abe26fe4fe829a6e236bd0e4c9ca3f203c1
parente94001c0bb9ee7847a2ef7a3b436acd74acb9fd6
tcpwrapper: Fix signage problems in the tcp_wrappers hash function

Eliminate the following compiler warnings:

tcpwrapper.c:78: warning: no previous prototype for strtoint
tcpwrapper.c: In function strtoint
tcpwrapper.c:81: warning: conversion to int size_t may change the
    sign of the result
tcpwrapper.c:85: warning: conversion to unsigned int from int may
    change the sign of the result
tcpwrapper.c: In function hashint:
tcpwrapper.c:91: warning: conversion to int from unsigned int may
    change the sign of the result

The hash value is probably computed consistently even with
unexpected sign inversions.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
support/misc/tcpwrapper.c