- make prototypes for 16 and 32 bit types make sense.
- fix lint issues - add NetBSD rcsid
This commit is contained in:
parent
56d79e72ce
commit
a8846ff30b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ns_netint.c,v 1.1.1.1 2004/05/20 20:01:31 christos Exp $ */
|
||||
/* $NetBSD: ns_netint.c,v 1.2 2004/05/20 20:19:00 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
|
||||
@ -17,8 +17,13 @@
|
||||
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#ifdef notdef
|
||||
static const char rcsid[] = "Id: ns_netint.c,v 1.1.206.1 2004/03/09 08:33:44 marka Exp";
|
||||
#else
|
||||
__RCSID("$NetBSD: ns_netint.c,v 1.2 2004/05/20 20:19:00 christos Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Import. */
|
||||
@ -31,7 +36,7 @@ static const char rcsid[] = "Id: ns_netint.c,v 1.1.206.1 2004/03/09 08:33:44 mar
|
||||
|
||||
/* Public. */
|
||||
|
||||
u_int
|
||||
u_int16_t
|
||||
ns_get16(const u_char *src) {
|
||||
u_int dst;
|
||||
|
||||
@ -39,7 +44,7 @@ ns_get16(const u_char *src) {
|
||||
return (dst);
|
||||
}
|
||||
|
||||
u_long
|
||||
u_int32_t
|
||||
ns_get32(const u_char *src) {
|
||||
u_long dst;
|
||||
|
||||
@ -48,11 +53,11 @@ ns_get32(const u_char *src) {
|
||||
}
|
||||
|
||||
void
|
||||
ns_put16(u_int src, u_char *dst) {
|
||||
ns_put16(u_int16_t src, u_char *dst) {
|
||||
NS_PUT16(src, dst);
|
||||
}
|
||||
|
||||
void
|
||||
ns_put32(u_long src, u_char *dst) {
|
||||
ns_put32(u_int32_t src, u_char *dst) {
|
||||
NS_PUT32(src, dst);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user