/* * BIRD Client -- Utility Functions * * (c) 1999--2000 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ #include #include #include #include #include "nest/bird.h" #include "client/client.h" /* Client versions of logging functions */ void bug(char *msg, ...) { va_list args; va_start(args, msg); fputs("Internal error: ", stderr); vfprintf(stderr, msg, args); fputc('\n', stderr); exit(1); } void die(char *msg, ...) { va_list args; va_start(args, msg); vfprintf(stderr, msg, args); fputc('\n', stderr); exit(1); }