I forgot to include util.c. On my to-do list is something to make this more obvious.
Signed-Off-By: Daniel Barkalow <[EMAIL PROTECTED]> Index: util.c =================================================================== --- /dev/null (tree:e8194c62bfc68725972a6847fa2c6d529ca64137) +++ 420a52c504bf712cd898a11746a54ea4349a9386/util.c (mode:100644 sha1:d1d497c6709503f71138e816b2599d5105cc4915) @@ -0,0 +1,37 @@ +#include "util.h" +#include <stdarg.h> +#include <stdio.h> +#include <stdlib.h> + +void usage(const char *err) +{ + fprintf(stderr, "usage: %s\n", err); + exit(1); +} + +static void report(const char *prefix, const char *err, va_list params) +{ + fputs(prefix, stderr); + vfprintf(stderr, err, params); + fputs("\n", stderr); +} + +void die(const char *err, ...) +{ + va_list params; + + va_start(params, err); + report("fatal: ", err, params); + va_end(params); + exit(1); +} + +int error(const char *err, ...) +{ + va_list params; + + va_start(params, err); + report("error: ", err, params); + va_end(params); + return -1; +} - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html