hysteria

ii wrapper script
git clone git://git.2f30.org/hysteria
Log | Files | Refs | README | LICENSE

commit dd66b78a8a2760cdbb19e6f7c93b35bb3f1ec194
parent 43efcf115bf963f8492cd18cb3e5dff211ebd19e
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  7 Dec 2014 12:49:20 +0100

minor style fixes

Diffstat:
Mhysteria-highlight.c | 4++--
Mhysteria-namelist.c | 5+++--
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/hysteria-highlight.c b/hysteria-highlight.c @@ -25,7 +25,7 @@ char *argv0; #include "util.h" -static char timebuf[TIMEFORMAT_BUFSIZ] = ""; +static char timebuf[TIMEFORMAT_BUFSIZ] = ""; static regex_t nick, nickalign, server, timestamp, ignore, url, word; static regex_t unixtimestamp; @@ -197,5 +197,5 @@ main(int argc, char *argv[]) regfree(&ignore); regfree(&url); - return EXIT_SUCCESS; + return 0; } diff --git a/hysteria-namelist.c b/hysteria-namelist.c @@ -38,13 +38,14 @@ static Channel *channels; /* linked-list of channels */ static void eprint(const char *s) { fputs(s, stderr); - exit(EXIT_FAILURE); + exit(1); } static void * ecalloc(size_t nmemb, size_t size) { void *p; + if(!(p = calloc(nmemb, size))) eprint("cannot allocate memory\n"); return p; @@ -440,5 +441,5 @@ main(void) { } free(line); - return EXIT_SUCCESS; + return 0; }