2 * GIT - The information manager from hell
4 * Copyright (C) Linus Torvalds, 2005
9 static void report(const char *prefix
, const char *err
, va_list params
)
11 fputs(prefix
, stderr
);
12 vfprintf(stderr
, err
, params
);
16 void usage(const char *err
)
18 fprintf(stderr
, "usage: %s\n", err
);
22 void die(const char *err
, ...)
26 va_start(params
, err
);
27 report("fatal: ", err
, params
);
32 int error(const char *err
, ...)
36 va_start(params
, err
);
37 report("error: ", err
, params
);