diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-19 09:55:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-19 09:55:09 +0000 |
commit | 0b5fd45ef71fd24bf4a0c82820543bb66a5faba1 (patch) | |
tree | 4995ecb1539acf19c0dd8bb4eccfde875a961ce3 /include | |
parent | 9213a9e0f2d8fd638ecd02e2628d96dd5c7d233e (diff) | |
download | busybox-w32-0b5fd45ef71fd24bf4a0c82820543bb66a5faba1.tar.gz busybox-w32-0b5fd45ef71fd24bf4a0c82820543bb66a5faba1.tar.bz2 busybox-w32-0b5fd45ef71fd24bf4a0c82820543bb66a5faba1.zip |
change char *string = "foo" -> char string[] = "foo"
function old new delta
xsetenv 45 44 -1
iproute_list_or_flush 1834 1833 -1
ipaddr_modify 1915 1914 -1
ipaddr_list_or_flush 1861 1860 -1
invarg 39 38 -1
do_set 1259 1258 -1
bb_verror_msg 268 267 -1
create_icmp_socket 142 140 -2
create_icmp6_socket 142 140 -2
bb_full_fd_action 324 322 -2
bb_path_mtab_file 10 - -10
.rodata 214796 214720 -76
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 0/11 up/down: 0/-99) Total: -99 bytes
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/include/libbb.h b/include/libbb.h index eee7d7dfa..86e88bf89 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -369,30 +369,30 @@ enum { /* DO NOT CHANGE THESE VALUES! cp.c depends on them. */ | |||
369 | 369 | ||
370 | extern const char *bb_applet_name; | 370 | extern const char *bb_applet_name; |
371 | 371 | ||
372 | extern const char * const bb_msg_full_version; | 372 | extern const char bb_msg_full_version[]; |
373 | extern const char * const bb_msg_memory_exhausted; | 373 | extern const char bb_msg_memory_exhausted[]; |
374 | extern const char * const bb_msg_invalid_date; | 374 | extern const char bb_msg_invalid_date[]; |
375 | extern const char * const bb_msg_io_error; | 375 | extern const char bb_msg_io_error[]; |
376 | extern const char * const bb_msg_read_error; | 376 | extern const char bb_msg_read_error[]; |
377 | extern const char * const bb_msg_write_error; | 377 | extern const char bb_msg_write_error[]; |
378 | extern const char * const bb_msg_name_longer_than_foo; | 378 | extern const char bb_msg_name_longer_than_foo[]; |
379 | extern const char * const bb_msg_unknown; | 379 | extern const char bb_msg_unknown[]; |
380 | extern const char * const bb_msg_can_not_create_raw_socket; | 380 | extern const char bb_msg_can_not_create_raw_socket[]; |
381 | extern const char * const bb_msg_perm_denied_are_you_root; | 381 | extern const char bb_msg_perm_denied_are_you_root[]; |
382 | extern const char * const bb_msg_requires_arg; | 382 | extern const char bb_msg_requires_arg[]; |
383 | extern const char * const bb_msg_invalid_arg; | 383 | extern const char bb_msg_invalid_arg[]; |
384 | extern const char * const bb_msg_standard_input; | 384 | extern const char bb_msg_standard_input[]; |
385 | extern const char * const bb_msg_standard_output; | 385 | extern const char bb_msg_standard_output[]; |
386 | 386 | ||
387 | extern const char * const bb_path_nologin_file; | 387 | extern const char bb_path_nologin_file[]; |
388 | extern const char * const bb_path_passwd_file; | 388 | extern const char bb_path_passwd_file[]; |
389 | extern const char * const bb_path_shadow_file; | 389 | extern const char bb_path_shadow_file[]; |
390 | extern const char * const bb_path_gshadow_file; | 390 | extern const char bb_path_gshadow_file[]; |
391 | extern const char * const bb_path_group_file; | 391 | extern const char bb_path_group_file[]; |
392 | extern const char * const bb_path_securetty_file; | 392 | extern const char bb_path_securetty_file[]; |
393 | extern const char * const bb_path_motd_file; | 393 | extern const char bb_path_motd_file[]; |
394 | extern const char * const bb_path_wtmp_file; | 394 | extern const char bb_path_wtmp_file[]; |
395 | extern const char * const bb_dev_null; | 395 | extern const char bb_dev_null[]; |
396 | 396 | ||
397 | #ifndef BUFSIZ | 397 | #ifndef BUFSIZ |
398 | #define BUFSIZ 4096 | 398 | #define BUFSIZ 4096 |
@@ -407,14 +407,14 @@ extern char bb_common_bufsiz1[BUFSIZ+1]; | |||
407 | */ | 407 | */ |
408 | #define LIBBB_DEFAULT_LOGIN_SHELL "-/bin/sh" | 408 | #define LIBBB_DEFAULT_LOGIN_SHELL "-/bin/sh" |
409 | 409 | ||
410 | extern const char * const bb_default_login_shell; | 410 | extern const char bb_default_login_shell[]; |
411 | /* "/bin/sh" */ | 411 | /* "/bin/sh" */ |
412 | #define DEFAULT_SHELL (bb_default_login_shell+1) | 412 | #define DEFAULT_SHELL (bb_default_login_shell+1) |
413 | /* "sh" */ | 413 | /* "sh" */ |
414 | #define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) | 414 | #define DEFAULT_SHELL_SHORT_NAME (bb_default_login_shell+6) |
415 | 415 | ||
416 | 416 | ||
417 | extern char bb_path_mtab_file[]; | 417 | extern const char bb_path_mtab_file[]; |
418 | 418 | ||
419 | extern int bb_default_error_retval; | 419 | extern int bb_default_error_retval; |
420 | 420 | ||