From b5e260b9e01cb56b92b4a2eb6b0cfb8ccfe34625 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 15 Jan 2018 18:30:41 +0100 Subject: [PATCH] Minor refactor Signed-off-by: Joachim Nilsson --- src/util.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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) {