Userland: Fix extra unused printf() argument warning.

This commit is contained in:
Andreas Kling 2019-02-22 10:32:17 +01:00
parent 6788dcdb58
commit aaa11e3c25
Notes: sideshowbarker 2024-07-19 15:38:31 +09:00

View File

@ -16,7 +16,7 @@ int main(int argc, char** argv)
struct passwd* pw = getpwuid(uid);
struct group* gr = getgrgid(gid);
printf("uid=%u(%s), gid=%u(%s)", uid, pw ? pw->pw_name : "n/a", gid, gr ? gr->gr_name : "n/a", getpid());
printf("uid=%u(%s), gid=%u(%s)", uid, pw ? pw->pw_name : "n/a", gid, gr ? gr->gr_name : "n/a");
int extra_gid_count = getgroups(0, nullptr);
if (extra_gid_count) {