From 89053a8ace0449bbf1f706f37b4ad99cd8ceb627 Mon Sep 17 00:00:00 2001 From: ketmar Date: Fri, 17 Feb 2012 12:12:03 +0200 Subject: [PATCH] cosmetix in error output --- src/compile.c | 2 +- src/hcache.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compile.c b/src/compile.c index d98115e..7b98d5e 100644 --- a/src/compile.c +++ b/src/compile.c @@ -700,7 +700,7 @@ LIST *compile_while (PARSE *p, LOL *args, int *jmp) { */ static void debug_compile (int which, const char *s) { static int level = 0; - static char indent[36] = ">>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|"; + static const char indent[36] = ">>>>|>>>>|>>>>|>>>>|>>>>|>>>>|>>>>|"; int i = ((1+level)*2)%35; // if (which >= 0) printf("%*.*s ", i, i, indent); diff --git a/src/hcache.c b/src/hcache.c index 09e7ca0..f22da66 100644 --- a/src/hcache.c +++ b/src/hcache.c @@ -160,7 +160,7 @@ void hcache_init (void) { record_type = readStr(fl); if (!record_type) goto bail; if (!strcmp(record_type, CACHE_RECORD_END)) break; - if (strcmp(record_type, CACHE_RECORD_HEADER)) { fprintf(stderr, "invalid %s with record separator <%s>\n", hcachename, record_type ? record_type : ""); goto bail; } + if (strcmp(record_type, CACHE_RECORD_HEADER)) { printf("invalid %s with record separator <%s>\n", hcachename, record_type ? record_type : ""); goto bail; } c = &cachedata; c->boundname = readStr(fl); if (!c->boundname) goto bail; @@ -183,7 +183,7 @@ void hcache_init (void) { } c->hdrscan = l; if (!hashenter(hcachehash, (HASHDATA **)&c)) { - fprintf(stderr, "can't insert header cache item, bailing on %s\n", hcachename); + printf("can't insert header cache item, bailing on %s\n", hcachename); goto bail; } c->next = hcachelist; @@ -195,7 +195,7 @@ void hcache_init (void) { return; bail: fclose(fl); - fprintf(stderr, "HCACHE: invalid cache file: '%s'\n", hcachename); + printf("HCACHE: invalid cache file: '%s'\n", hcachename); } @@ -245,7 +245,7 @@ void hcache_done (void) { bail: fclose(fl); unlink(hcachename); - fprintf(stderr, "HCACHE: can't write cache file: '%s'\n", hcachename); + printf("HCACHE: can't write cache file: '%s'\n", hcachename); } -- 2.11.4.GIT