forgot to remove some debugging noise
[oweals/busybox.git] / id.c
diff --git a/id.c b/id.c
index 59cfafa0a6019ca1a84b2a4657c21922f3c3b70d..3667b32b234fd881f0c6e26ec45c581eab14a2ed 100644 (file)
--- a/id.c
+++ b/id.c
@@ -23,9 +23,8 @@
 #include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
-#include <pwd.h>
-#include <grp.h>
 #include <getopt.h>
+#include <string.h>
 #include <sys/types.h>
 
 extern int id_main(int argc, char **argv)
@@ -54,11 +53,11 @@ extern int id_main(int argc, char **argv)
                                name_not_number++;
                                break;
                        default:
-                               usage(id_usage);
+                               show_usage();
                }
        }
 
-       if (no_user && no_group) usage(id_usage);
+       if (no_user && no_group) show_usage();
 
        if (argv[optind] == NULL) {
                if (print_real) {
@@ -78,7 +77,7 @@ extern int id_main(int argc, char **argv)
        pwnam=my_getpwnam(user);
        grnam=my_getgrnam(group);
        if (gid == -1 || pwnam==-1 || grnam==-1) {
-               error_msg_and_die("%s: No such user\n", user);
+               error_msg_and_die("%s: No such user", user);
        }
 
        if (no_group) {