mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 22:13:01 +07:00
+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