From 25ebe46ce23d6db0dd2623bcc798d2f6a9bc6163 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 13 Dec 2014 16:02:22 +0000 Subject: [PATCH] util.c: move printuid to uid.c This will make further uid/gid fixes simpler. * util.c (printuid): Move * uid.c: ... here. --- uid.c | 9 +++++++++ util.c | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/uid.c b/uid.c index 0991074a..0a1a2eea 100644 --- a/uid.c +++ b/uid.c @@ -75,3 +75,12 @@ sys_setresuid(struct tcb *tcp) } return 0; } + +void +printuid(const char *text, const unsigned int uid) +{ + if ((unsigned int) -1 == uid) + tprintf("%s-1", text); + else + tprintf("%s%u", text, uid); +} diff --git a/util.c b/util.c index 3201b09d..fb5476f0 100644 --- a/util.c +++ b/util.c @@ -503,15 +503,6 @@ printfd(struct tcb *tcp, int fd) tprintf("%d", fd); } -void -printuid(const char *text, const unsigned int uid) -{ - if ((unsigned int) -1 == uid) - tprintf("%s-1", text); - else - tprintf("%s%u", text, uid); -} - /* * Quote string `instr' of length `size' * Write up to (3 + `size' * 4) bytes to `outstr' buffer. -- 2.40.0