]> err.no Git - util-linux/commitdiff
newgrp: use c.h, remove tailing whitespace
authorKarel Zak <kzak@redhat.com>
Thu, 15 Oct 2009 23:38:29 +0000 (01:38 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 15 Oct 2009 23:38:29 +0000 (01:38 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/newgrp.c

index 189a38262f4713da928a671e4a1eca091277e695..976a0493956cdc018b46f781fd6e20451051fc3e 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
+
+#include "c.h"
 #include "pathnames.h"
 #include "my_crypt.h"
 #include "nls.h"
 
-#ifndef TRUE
-# define TRUE 1
-#endif
-
-#ifndef FALSE
-# define FALSE 0
-#endif
-
 /* try to read password from gshadow */
 static char *
 get_gshadow_pwd(char *groupname)
@@ -100,14 +94,14 @@ main(int argc, char *argv[])
     setlocale(LC_ALL, "");
     bindtextdomain(PACKAGE, LOCALEDIR);
     textdomain(PACKAGE);
-    
+
     if (!(pw_entry = getpwuid(getuid()))) {
        perror(_("newgrp: Who are you?"));
        exit(1);
     }
-    
+
     shell = (pw_entry->pw_shell[0] ? pw_entry->pw_shell : _PATH_BSHELL);
-    
+
     if (argc < 2) {
        if(setgid(pw_entry->pw_gid) < 0) {
            perror(_("newgrp: setgid"));