mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
1 parent
45c10edad6
commit
b5e260b9e0
1 file changed
+6
-6
+6
-6
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user