Try to make indent formatting less horrible
[oweals/busybox.git] / libbb / setup_environment.c
index dc171fa1f1fe840018c2a639d2d2ec7203b5e298..b18f8967e048c4c9716785c8d3b68b012571110b 100644 (file)
 static void xsetenv ( const char *key, const char *value )
 {
            if ( setenv ( key, value, 1 ))
-                               error_msg_and_die ( "out of memory" );
+                               bb_error_msg_and_die (bb_msg_memory_exhausted);
 }
 
 void setup_environment ( const char *shell, int loginshell, int changeenv, const struct passwd *pw )
 {
        if ( loginshell ) {
-               char *term;
+               const char *term;
        
                /* Change the current working directory to be the home directory
                 * of the user.  It is a fatal error for this process to be unable
@@ -62,7 +62,7 @@ void setup_environment ( const char *shell, int loginshell, int changeenv, const
                if ( chdir ( pw-> pw_dir )) {
                        if ( chdir ( "/" )) {
                                syslog ( LOG_WARNING, "unable to cd to %s' for user %s'\n", pw-> pw_dir, pw-> pw_name );
-                               error_msg_and_die ( "cannot cd to home directory or /" );
+                               bb_error_msg_and_die ( "cannot cd to home directory or /" );
                        }
                        fputs ( "warning: cannot change to home directory\n", stderr );
                }