Minor refactor

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-01-15 18:30:41 +01:00
parent 45c10edad6
commit b5e260b9e0
+6 -6
View File
@@ -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)
{