diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-21 11:09:40 +0000 |
commit | 5e34ff29bcc870936ab18172f438a34d042d4e03 (patch) | |
tree | a5e7a528f2f916eb883f1161eadceacdf2dca4be /networking/udhcp/files.c | |
parent | 8b814b4a349e2262c0ad25793b05206a14651ebb (diff) | |
download | busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.gz busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.tar.bz2 busybox-w32-5e34ff29bcc870936ab18172f438a34d042d4e03.zip |
*: mass renaming of USE_XXXX to IF_XXXX
and SKIP_XXXX to IF_NOT_XXXX - the second one was especially
badly named. It was not skipping anything!
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r-- | networking/udhcp/files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index a061a9c9b..b13897608 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c | |||
@@ -394,7 +394,7 @@ void FAST_FUNC read_leases(const char *file) | |||
394 | struct dhcpOfferedAddr lease; | 394 | struct dhcpOfferedAddr lease; |
395 | int64_t written_at, time_passed; | 395 | int64_t written_at, time_passed; |
396 | int fd; | 396 | int fd; |
397 | USE_UDHCP_DEBUG(unsigned i;) | 397 | IF_UDHCP_DEBUG(unsigned i;) |
398 | 398 | ||
399 | fd = open_or_warn(file, O_RDONLY); | 399 | fd = open_or_warn(file, O_RDONLY); |
400 | if (fd < 0) | 400 | if (fd < 0) |
@@ -410,7 +410,7 @@ void FAST_FUNC read_leases(const char *file) | |||
410 | if ((uint64_t)time_passed > 12 * 60 * 60) | 410 | if ((uint64_t)time_passed > 12 * 60 * 60) |
411 | goto ret; | 411 | goto ret; |
412 | 412 | ||
413 | USE_UDHCP_DEBUG(i = 0;) | 413 | IF_UDHCP_DEBUG(i = 0;) |
414 | while (full_read(fd, &lease, sizeof(lease)) == sizeof(lease)) { | 414 | while (full_read(fd, &lease, sizeof(lease)) == sizeof(lease)) { |
415 | /* ADDME: what if it matches some static lease? */ | 415 | /* ADDME: what if it matches some static lease? */ |
416 | uint32_t y = ntohl(lease.yiaddr); | 416 | uint32_t y = ntohl(lease.yiaddr); |
@@ -424,7 +424,7 @@ void FAST_FUNC read_leases(const char *file) | |||
424 | bb_error_msg("too many leases while loading %s", file); | 424 | bb_error_msg("too many leases while loading %s", file); |
425 | break; | 425 | break; |
426 | } | 426 | } |
427 | USE_UDHCP_DEBUG(i++;) | 427 | IF_UDHCP_DEBUG(i++;) |
428 | } | 428 | } |
429 | } | 429 | } |
430 | DEBUG("Read %d leases", i); | 430 | DEBUG("Read %d leases", i); |