]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
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)
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>

No differences found