diff options
author | Denis Vlasenko | 2006-10-26 23:21:47 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-10-26 23:21:47 +0000 |
commit | f0ed376eda5d5c25d270e5100a881fb2d801bee6 (patch) | |
tree | 79166b700c497fbe798b6031e5bbff97e0933573 /coreutils/id.c | |
parent | 670a6626cabc1498f32b35f959591f8621d8447e (diff) | |
download | busybox-f0ed376eda5d5c25d270e5100a881fb2d801bee6.zip busybox-f0ed376eda5d5c25d270e5100a881fb2d801bee6.tar.gz |
remove bb_printf and the like
Diffstat (limited to 'coreutils/id.c')
-rw-r--r-- | coreutils/id.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/coreutils/id.c b/coreutils/id.c index 9d60532..66874a7 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -35,7 +35,7 @@ static short printf_full(unsigned int id, const char *arg, const char prefix) fmt = "%cid=%u(%s)"; status = EXIT_SUCCESS; } - bb_printf(fmt, prefix, id, arg); + printf(fmt, prefix, id, arg); return status; } @@ -74,10 +74,10 @@ int id_main(int argc, char **argv) /* bb_getpwuid and bb_getgrgid exit on failure so puts cannot segfault */ puts((flags & JUST_USER) ? bb_getpwuid(NULL, uid, -1 ) : bb_getgrgid(NULL, gid, -1 )); } else { - bb_printf("%u\n", (flags & JUST_USER) ? uid : gid); + printf("%u\n", (flags & JUST_USER) ? uid : gid); } /* exit */ - bb_fflush_stdout_and_exit(EXIT_SUCCESS); + fflush_stdout_and_exit(EXIT_SUCCESS); } /* Print full info like GNU id */ @@ -96,16 +96,16 @@ int id_main(int argc, char **argv) getcon(&mysid); context[0] = '\0'; if (mysid) { - len = strlen(mysid)+1; - safe_strncpy(context, mysid, len); - freecon(mysid); + len = strlen(mysid)+1; + safe_strncpy(context, mysid, len); + freecon(mysid); } else { - safe_strncpy(context, "unknown", 8); + safe_strncpy(context, "unknown", 8); } - bb_printf(" context=%s", context); + printf(" context=%s", context); } #endif putchar('\n'); - bb_fflush_stdout_and_exit(status); + fflush_stdout_and_exit(status); } |