X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/cc3ede61012fc9f409b7c7e6197d5c563d11d7da..16bf32dcea05c64ff2ab831569be9a91c979a1b6:/libtests/test.c diff --git a/libtests/test.c b/libtests/test.c index 73bfdd2..86a6184 100644 --- a/libtests/test.c +++ b/libtests/test.c @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2005, 2007, 2008 Richard Kettlewell + * Copyright (C) 2005, 2007-2009 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -102,7 +102,8 @@ uint32_t *ucs4parse(const char *s) { while(*s) { errno = 0; dynstr_ucs4_append(&d, strtoul(s, &e, 0)); - if(errno) fatal(errno, "strtoul (%s)", s); + if(errno) + disorder_fatal(errno, "strtoul (%s)", s); s = e; } dynstr_ucs4_terminate(&d); @@ -147,7 +148,7 @@ static const struct option options[] = { }; /* display usage message and terminate */ -static void help(void) { +static void attribute((noreturn)) help(void) { xprintf("Usage:\n" " %s [OPTIONS]\n" "Options:\n"