aboutsummaryrefslogtreecommitdiff
path: root/networking/zcip.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-22 22:55:11 +0000
commit86f5c9906beac527f3d7966f24811b571a589e08 (patch)
tree1c9eba853c728b5d734506e1c66c269d96fe46ea /networking/zcip.c
parent2edf52643d3eb3d13f26d31f9678cf122f2063bc (diff)
downloadbusybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.gz
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.tar.bz2
busybox-w32-86f5c9906beac527f3d7966f24811b571a589e08.zip
- add platform.h.
- use shorter boilerplate while at it.
Diffstat (limited to 'networking/zcip.c')
-rw-r--r--networking/zcip.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/networking/zcip.c b/networking/zcip.c
index ad1131f3b..294ffd066 100644
--- a/networking/zcip.c
+++ b/networking/zcip.c
@@ -5,20 +5,7 @@
5 * Copyright (C) 2003 by Arthur van Hoff (avh@strangeberry.com) 5 * Copyright (C) 2003 by Arthur van Hoff (avh@strangeberry.com)
6 * Copyright (C) 2004 by David Brownell 6 * Copyright (C) 2004 by David Brownell
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
21 * 02111-1307 USA
22 */ 9 */
23 10
24/* 11/*
@@ -73,7 +60,7 @@ struct arp_packet {
73 struct in_addr source_ip; 60 struct in_addr source_ip;
74 struct ether_addr target_addr; 61 struct ether_addr target_addr;
75 struct in_addr target_ip; 62 struct in_addr target_ip;
76} __attribute__ ((__packed__)); 63} ATTRIBUTE_PACKED;
77 64
78/* 169.254.0.0 */ 65/* 169.254.0.0 */
79static const uint32_t LINKLOCAL_ADDR = 0xa9fe0000; 66static const uint32_t LINKLOCAL_ADDR = 0xa9fe0000;
@@ -214,7 +201,7 @@ bad:
214/** 201/**
215 * Print usage information. 202 * Print usage information.
216 */ 203 */
217static void __attribute__((noreturn)) 204static void ATTRIBUTE_NORETURN
218zcip_usage(const char *msg) 205zcip_usage(const char *msg)
219{ 206{
220 fprintf(stderr, "%s: %s\n", prog, msg); 207 fprintf(stderr, "%s: %s\n", prog, msg);