summaryrefslogtreecommitdiffstats
path: root/login-utils/su.c
diff options
context:
space:
mode:
authorLudwig Nussel2012-06-01 14:51:15 +0200
committerKarel Zak2012-06-05 15:15:56 +0200
commit8aa108ff4720eb38d45acae3ff2d08dc5d9ce2f7 (patch)
tree02ce936628681b60c081e54a42b52244573095bd /login-utils/su.c
parentlibblkid: add dm-verity hash device detection (diff)
downloadkernel-qcow2-util-linux-8aa108ff4720eb38d45acae3ff2d08dc5d9ce2f7.tar.gz
kernel-qcow2-util-linux-8aa108ff4720eb38d45acae3ff2d08dc5d9ce2f7.tar.xz
kernel-qcow2-util-linux-8aa108ff4720eb38d45acae3ff2d08dc5d9ce2f7.zip
su: don't use custom MAX macro
Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Diffstat (limited to 'login-utils/su.c')
-rw-r--r--login-utils/su.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/login-utils/su.c b/login-utils/su.c
index 0e8963233..77722c40f 100644
--- a/login-utils/su.c
+++ b/login-utils/su.c
@@ -37,10 +37,6 @@
Based on an implemenation by David MacKenzie <djm@gnu.ai.mit.edu>. */
-#ifndef MAX
-# define MAX(a,b) ((a) > (b) ? (a) : (b))
-#endif
-
/* Exit statuses for programs like 'env' that exec other programs.
EXIT_FAILURE might not be 1, so use EXIT_FAIL in such programs. */
enum
@@ -817,7 +813,7 @@ main (int argc, char **argv)
if (simulate_login && chdir (pw->pw_dir) != 0)
error (0, errno, _("warning: cannot change directory to %s"), pw->pw_dir);
- run_shell (shell, command, argv + optind, MAX (0, argc - optind));
+ run_shell (shell, command, argv + optind, max (0, argc - optind));
}
// vim: sw=2 cinoptions=>4,n-2,{2,^-2,\:2,=2,g0,h2,p5,t0,+2,(0,u0,w1,m1