projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libbb: remove glibc-style bloat from sha_crypt. -1130 bytes.
[oweals/busybox.git]
/
coreutils
/
chmod.c
diff --git
a/coreutils/chmod.c
b/coreutils/chmod.c
index 52cc40d97d1b4251ecaa68f2b5991b36b1b91652..40f681fb6ab0797da76d044e3148ef150924ee1c 100644
(file)
--- a/
coreutils/chmod.c
+++ b/
coreutils/chmod.c
@@
-34,7
+34,7
@@
* symbolic links encountered during recursive directory traversals.
*/
* symbolic links encountered during recursive directory traversals.
*/
-static int fileAction(const char *fileName, struct stat *statbuf, void* param, int depth)
+static int
FAST_FUNC
fileAction(const char *fileName, struct stat *statbuf, void* param, int depth)
{
mode_t newmode;
{
mode_t newmode;
@@
-63,12
+63,12
@@
static int fileAction(const char *fileName, struct stat *statbuf, void* param, i
}
err:
if (!OPT_QUIET)
}
err:
if (!OPT_QUIET)
- bb_
perror_msg("%s",
fileName);
+ bb_
simple_perror_msg(
fileName);
return FALSE;
}
return FALSE;
}
-int chmod_main(int argc, char **argv);
-int chmod_main(int argc, char **argv)
+int chmod_main(int argc, char **argv)
MAIN_EXTERNALLY_VISIBLE
;
+int chmod_main(int argc
UNUSED_PARAM
, char **argv)
{
int retval = EXIT_SUCCESS;
char *arg, **argp;
{
int retval = EXIT_SUCCESS;
char *arg, **argp;
@@
-93,7
+93,7
@@
int chmod_main(int argc, char **argv)
/* Parse options */
opt_complementary = "-2";
/* Parse options */
opt_complementary = "-2";
- getopt32(arg
c, arg
v, ("-"OPT_STR) + 1); /* Reuse string */
+ getopt32(argv, ("-"OPT_STR) + 1); /* Reuse string */
argv += optind;
/* Restore option-like mode if needed */
argv += optind;
/* Restore option-like mode if needed */