diff --git a/src/util.c b/src/util.c index f1426a86..460d5f4a 100644 --- a/src/util.c +++ b/src/util.c @@ -51,12 +51,6 @@ void do_sleep(unsigned int sec) ; } -/* Allowed characters in job/id/name */ -static int isallowed(int ch) -{ - return isprint(ch); -} - /* Seconds since boot, from sysinfo() */ long jiffies(void) { @@ -108,6 +102,12 @@ char *uptime(long secs, char *buf, size_t len) return buf; } +/* Allowed characters in job/id/name */ +static int isallowed(int ch) +{ + return isprint(ch); +} + /* Sanitize user input, make sure to NUL terminate. */ char *sanitize(char *arg, size_t len) {