inet_addr.c (344833) | inet_addr.c (369186) |
---|---|
1/* $FreeBSD: stable/11/contrib/ipfilter/lib/inet_addr.c 344833 2019-03-06 02:37:25Z cy $ */ | 1/* $FreeBSD: stable/11/contrib/ipfilter/lib/inet_addr.c 369186 2021-01-31 04:32:46Z cy $ */ |
2 3/* 4 * ++Copyright++ 1983, 1990, 1993 5 * - 6 * Copyright (c) 1983, 1990, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 51 unchanged lines hidden (view full) --- 61#endif /* LIBC_SCCS and not lint */ 62 63#include <sys/param.h> 64#include <netinet/in.h> 65#include <arpa/inet.h> 66#include <ctype.h> 67 68#ifndef __P | 2 3/* 4 * ++Copyright++ 1983, 1990, 1993 5 * - 6 * Copyright (c) 1983, 1990, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without --- 51 unchanged lines hidden (view full) --- 61#endif /* LIBC_SCCS and not lint */ 62 63#include <sys/param.h> 64#include <netinet/in.h> 65#include <arpa/inet.h> 66#include <ctype.h> 67 68#ifndef __P |
69# ifdef __STDC__ | |
70# define __P(x) x | 69# define __P(x) x |
71# else 72# define __P(x) () 73# endif | |
74#endif 75int inet_aton __P((const char *, struct in_addr *)); 76 77/* 78 * Because the ctype(3) posix definition, if used "safely" in code everywhere, 79 * would mean all normal code that walks through strings needed casts. Yuck. 80 */ 81#define ISALNUM(x) isalnum((u_char)(x)) --- 127 unchanged lines hidden --- | 70#endif 71int inet_aton __P((const char *, struct in_addr *)); 72 73/* 74 * Because the ctype(3) posix definition, if used "safely" in code everywhere, 75 * would mean all normal code that walks through strings needed casts. Yuck. 76 */ 77#define ISALNUM(x) isalnum((u_char)(x)) --- 127 unchanged lines hidden --- |