1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

First usable version of the client. No command completion and similar nifty

features yet, but it works.
This commit is contained in:
Martin Mares
2000-02-15 12:18:37 +00:00
parent 973304bc2b
commit c51f132d58
4 changed files with 247 additions and 18 deletions

View File

@@ -16,12 +16,15 @@
/* Client versions of logging functions */
/* FIXME: Use bsprintf, so that %m works */
void
bug(char *msg, ...)
{
va_list args;
va_start(args, msg);
cleanup();
fputs("Internal error: ", stderr);
vfprintf(stderr, msg, args);
fputc('\n', stderr);
@@ -34,6 +37,7 @@ die(char *msg, ...)
va_list args;
va_start(args, msg);
cleanup();
vfprintf(stderr, msg, args);
fputc('\n', stderr);
exit(1);