From 34042b90778108a140815ce16aa50070059aec69 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 3 Aug 2004 06:27:33 +0000 Subject: (main): Print uids/gids with %lu, not %ld. --- src/setuidgid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/setuidgid.c b/src/setuidgid.c index 96f4ef4b0..653642f07 100644 --- a/src/setuidgid.c +++ b/src/setuidgid.c @@ -114,11 +114,11 @@ main (int argc, char **argv) if (setgid (pwd->pw_gid)) error (SETUIDGID_FAILURE, errno, - _("cannot set group-ID to %ld"), (long int) pwd->pw_gid); + _("cannot set group-ID to %lu"), (unsigned long int) pwd->pw_gid); if (setuid (pwd->pw_uid)) error (SETUIDGID_FAILURE, errno, - _("cannot set user-ID to %ld"), (long int) pwd->pw_uid); + _("cannot set user-ID to %lu"), (unsigned long int) pwd->pw_uid); { char **cmd = argv + 2; -- cgit v1.2.3-70-g09d2