summaryrefslogtreecommitdiffstats
path: root/sbin/ping6/ping6.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-03-21 13:20:49 +0000
committerimp <imp@FreeBSD.org>2002-03-21 13:20:49 +0000
commitec2a00af74c8240f7fc6f03c84ad40034fbf2aac (patch)
tree7889a8c6dd8258adf78b1be9e93d2baefad6abb1 /sbin/ping6/ping6.c
parentbaca1664d961625b631ee7b6c1faf55e0f926aa9 (diff)
downloadFreeBSD-src-ec2a00af74c8240f7fc6f03c84ad40034fbf2aac.zip
FreeBSD-src-ec2a00af74c8240f7fc6f03c84ad40034fbf2aac.tar.gz
o remove __P
o remove main prototype
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r--sbin/ping6/ping6.c61
1 files changed, 30 insertions, 31 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index 9132146..5ffc91a 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -252,37 +252,36 @@ volatile sig_atomic_t seenint;
volatile sig_atomic_t seeninfo;
#endif
-int main __P((int, char *[]));
-void fill __P((char *, char *));
-int get_hoplim __P((struct msghdr *));
-int get_pathmtu __P((struct msghdr *));
-void set_pathmtu __P((int));
-struct in6_pktinfo *get_rcvpktinfo __P((struct msghdr *));
-void onsignal __P((int));
-void retransmit __P((void));
-void onint __P((int));
-size_t pingerlen __P((void));
-int pinger __P((void));
-const char *pr_addr __P((struct sockaddr *, int));
-void pr_icmph __P((struct icmp6_hdr *, u_char *));
-void pr_iph __P((struct ip6_hdr *));
-void pr_suptypes __P((struct icmp6_nodeinfo *, size_t));
-void pr_nodeaddr __P((struct icmp6_nodeinfo *, int));
-int myechoreply __P((const struct icmp6_hdr *));
-int mynireply __P((const struct icmp6_nodeinfo *));
-char *dnsdecode __P((const u_char **, const u_char *, const u_char *,
- u_char *, size_t));
-void pr_pack __P((u_char *, int, struct msghdr *));
-void pr_exthdrs __P((struct msghdr *));
-void pr_ip6opt __P((void *));
-void pr_rthdr __P((void *));
-int pr_bitrange __P((u_int32_t, int, int));
-void pr_retip __P((struct ip6_hdr *, u_char *));
-void summary __P((void));
-void tvsub __P((struct timeval *, struct timeval *));
-int setpolicy __P((int, char *));
-char *nigroup __P((char *));
-void usage __P((void));
+void fill(char *, char *);
+int get_hoplim(struct msghdr *);
+int get_pathmtu(struct msghdr *);
+void set_pathmtu(int);
+struct in6_pktinfo *get_rcvpktinfo(struct msghdr *);
+void onsignal(int);
+void retransmit(void);
+void onint(int);
+size_t pingerlen(void);
+int pinger(void);
+const char *pr_addr(struct sockaddr *, int);
+void pr_icmph(struct icmp6_hdr *, u_char *);
+void pr_iph(struct ip6_hdr *);
+void pr_suptypes(struct icmp6_nodeinfo *, size_t);
+void pr_nodeaddr(struct icmp6_nodeinfo *, int);
+int myechoreply(const struct icmp6_hdr *);
+int mynireply(const struct icmp6_nodeinfo *);
+char *dnsdecode(const u_char **, const u_char *, const u_char *,
+ u_char *, size_t);
+void pr_pack(u_char *, int, struct msghdr *);
+void pr_exthdrs(struct msghdr *);
+void pr_ip6opt(void *);
+void pr_rthdr(void *);
+int pr_bitrange(u_int32_t, int, int);
+void pr_retip(struct ip6_hdr *, u_char *);
+void summary(void);
+void tvsub(struct timeval *, struct timeval *);
+int setpolicy(int, char *);
+char *nigroup(char *);
+void usage(void);
int
main(argc, argv)
OpenPOWER on IntegriCloud