summaryrefslogtreecommitdiff
path: root/src/skaembutils/s6-clock.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-02-10 20:12:16 +0000
committerLaurent Bercot <ska@appnovation.com>2023-02-10 20:12:16 +0000
commit790c8681d3451b61a536871dad234fc294796fd8 (patch)
treea75384fa450410cb339d50439b4c522568138688 /src/skaembutils/s6-clock.c
parentcf07a7b62346c8b5ab8e1c0714590f6566c411fe (diff)
downloads6-portable-utils-790c8681d3451b61a536871dad234fc294796fd8.tar.xz
Clean up all the code
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/skaembutils/s6-clock.c')
-rw-r--r--src/skaembutils/s6-clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/skaembutils/s6-clock.c b/src/skaembutils/s6-clock.c
index 20f943a..5a9e67a 100644
--- a/src/skaembutils/s6-clock.c
+++ b/src/skaembutils/s6-clock.c
@@ -6,7 +6,7 @@
#define USAGE "s6-clock [ tai64nlabel ]"
-static int getit (void)
+static int s6clock_getit (void)
{
char fmt[TIMESTAMP+1] ;
timestamp(fmt) ;
@@ -16,7 +16,7 @@ static int getit (void)
return 0 ;
}
-static int setit (char const *h)
+static int s6clock_setit (char const *h)
{
tain a ;
if (!timestamp_scan(h, &a)) strerr_dieusage(100, USAGE) ;
@@ -27,5 +27,5 @@ static int setit (char const *h)
int main (int argc, char const *const *argv)
{
PROG = "s6-clock" ;
- return (argc < 2) ? getit() : setit(argv[1]) ;
+ return (argc < 2) ? s6clock_getit() : s6clock_setit(argv[1]) ;
}