aboutsummaryrefslogtreecommitdiff
path: root/networking/udhcp/files.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-20 13:28:22 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-20 13:28:22 +0000
commite1a0d486e4804eae098571f1a6788394c2ee51ae (patch)
treec6f3435738900c8d53832eb919b1b2c3d524f2e5 /networking/udhcp/files.c
parentdd2982882bb192ea757f32514bc2ea0bc96f5ba0 (diff)
downloadbusybox-w32-e1a0d486e4804eae098571f1a6788394c2ee51ae.tar.gz
busybox-w32-e1a0d486e4804eae098571f1a6788394c2ee51ae.tar.bz2
busybox-w32-e1a0d486e4804eae098571f1a6788394c2ee51ae.zip
message string changes, mostly for consistency, also -32 bytes in .rodata
Diffstat (limited to 'networking/udhcp/files.c')
-rw-r--r--networking/udhcp/files.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c
index 52d383869..36bcc31d9 100644
--- a/networking/udhcp/files.c
+++ b/networking/udhcp/files.c
@@ -284,7 +284,7 @@ int read_config(const char *file)
284 keywords[i].handler(keywords[i].def, keywords[i].var); 284 keywords[i].handler(keywords[i].def, keywords[i].var);
285 285
286 if (!(in = fopen(file, "r"))) { 286 if (!(in = fopen(file, "r"))) {
287 bb_error_msg("Unable to open config file: %s", file); 287 bb_error_msg("unable to open config file: %s", file);
288 return 0; 288 return 0;
289 } 289 }
290 290
@@ -308,7 +308,7 @@ int read_config(const char *file)
308 for (i = 0; keywords[i].keyword[0]; i++) 308 for (i = 0; keywords[i].keyword[0]; i++)
309 if (!strcasecmp(token, keywords[i].keyword)) 309 if (!strcasecmp(token, keywords[i].keyword))
310 if (!keywords[i].handler(line, keywords[i].var)) { 310 if (!keywords[i].handler(line, keywords[i].var)) {
311 bb_error_msg("Failure parsing line %d of %s", lm, file); 311 bb_error_msg("failure parsing line %d of %s", lm, file);
312 if (ENABLE_FEATURE_UDHCP_DEBUG) 312 if (ENABLE_FEATURE_UDHCP_DEBUG)
313 bb_error_msg("unable to parse '%s'", debug_orig); 313 bb_error_msg("unable to parse '%s'", debug_orig);
314 /* reset back to the default value */ 314 /* reset back to the default value */
@@ -329,7 +329,7 @@ void write_leases(void)
329 unsigned long tmp_time; 329 unsigned long tmp_time;
330 330
331 if (!(fp = fopen(server_config.lease_file, "w"))) { 331 if (!(fp = fopen(server_config.lease_file, "w"))) {
332 bb_error_msg("Unable to open %s for writing", server_config.lease_file); 332 bb_error_msg("unable to open %s for writing", server_config.lease_file);
333 return; 333 return;
334 } 334 }
335 335
@@ -367,7 +367,7 @@ void read_leases(const char *file)
367 struct dhcpOfferedAddr lease; 367 struct dhcpOfferedAddr lease;
368 368
369 if (!(fp = fopen(file, "r"))) { 369 if (!(fp = fopen(file, "r"))) {
370 bb_error_msg("Unable to open %s for reading", file); 370 bb_error_msg("unable to open %s for reading", file);
371 return; 371 return;
372 } 372 }
373 373
@@ -377,7 +377,7 @@ void read_leases(const char *file)
377 lease.expires = ntohl(lease.expires); 377 lease.expires = ntohl(lease.expires);
378 if (!server_config.remaining) lease.expires -= time(0); 378 if (!server_config.remaining) lease.expires -= time(0);
379 if (!(add_lease(lease.chaddr, lease.yiaddr, lease.expires))) { 379 if (!(add_lease(lease.chaddr, lease.yiaddr, lease.expires))) {
380 bb_error_msg("Too many leases while loading %s", file); 380 bb_error_msg("too many leases while loading %s", file);
381 break; 381 break;
382 } 382 }
383 i++; 383 i++;