dissector: ip_auth_hdr: Fix compiler warning
authorTobias Klauser <tklauser@distanz.ch>
Fri, 9 Aug 2013 09:38:42 +0000 (11:38 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Fri, 9 Aug 2013 09:38:42 +0000 (11:38 +0200)
commitcd69ac14e478483f38d8ff9a6671e5f65ef5473a
treee36e689c77e8a1e9566efb3fd129035fbe0f0e1b
parentdf1d1c89542554db5e184372963b3dfbef3d2007
dissector: ip_auth_hdr: Fix compiler warning

Fix the following compiler warning that occurs when building with "-W
-Wall -Wextra":

ip_authentication_hdr.c: In function ‘auth_hdr’:
proto_ip_authentication_hdr.c:57:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Also remove an unnecessary check for header length smaller than 0, since
it always results from an unsigned type and is now a size_t anyway.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
proto_ip_authentication_hdr.c