From 57cf912a592d9a38966595f4fb4e936ff1334ce8 Mon Sep 17 00:00:00 2001 From: obarun <eric@obarun.org> Date: Thu, 24 Jan 2019 14:09:25 +1100 Subject: [PATCH] typo fix --- src/66/66-info.c | 3 ++- src/66/66-tree.c | 3 ++- src/lib66/db_ok.c | 2 +- src/lib66/parser_utils.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/66/66-info.c b/src/66/66-info.c index 8bfa3be9..5acbf0ea 100644 --- a/src/66/66-info.c +++ b/src/66/66-info.c @@ -41,7 +41,8 @@ #include <s6/s6-supervise.h>//s6_svc_ok -#include <stdio.h> +//#include <stdio.h> + unsigned int VERBOSITY = 1 ; static stralloc base = STRALLOC_ZERO ; static stralloc live = STRALLOC_ZERO ; diff --git a/src/66/66-tree.c b/src/66/66-tree.c index 5c7fc848..d725c84c 100644 --- a/src/66/66-tree.c +++ b/src/66/66-tree.c @@ -33,7 +33,8 @@ #include <66/constants.h> #include <66/db.h> -#include <stdio.h> +//#include <stdio.h> + #define USAGE "66-tree [ -h help ] [ -v verbosity ] [ -n new ] [ -a allow user,user,... ] [ -d deny user,user,... ] [ -c current ] [ -E enable ] [ -D disable ] [ -R remove ] [ -C clone ] tree" unsigned int VERBOSITY = 1 ; diff --git a/src/lib66/db_ok.c b/src/lib66/db_ok.c index 52c8c795..09f4ab58 100644 --- a/src/lib66/db_ok.c +++ b/src/lib66/db_ok.c @@ -30,7 +30,7 @@ int db_ok(char const *livetree, char const *treename) sym[treelen] = '/' ; memcpy(sym + treelen + 1, treename,namelen) ; sym[treelen + 1 + namelen] = 0 ; - + if(lstat(sym,&st) < 0) return 0 ; if(!(S_ISLNK(st.st_mode))) return 0 ; diff --git a/src/lib66/parser_utils.c b/src/lib66/parser_utils.c index e0334de2..c81a06cf 100644 --- a/src/lib66/parser_utils.c +++ b/src/lib66/parser_utils.c @@ -872,7 +872,7 @@ int keep_logger(sv_execlog *log,keynocheck *nocheck) r = get_enumbyid (nocheck->val.s,key_enum_el) ; if (r < 0) { - VERBO3 parse_err(0,nocheck->idsec,TIMESTAMP) ; + VERBO3 parse_err(0,nocheck->idsec,TIMESTP) ; return 0 ; } log->timestamp = r ; -- GitLab