]> mj.ucw.cz Git - nwho.git/blob - util.c
Make the systemd service be ordered after autofs.service, so that it is ordered befor...
[nwho.git] / util.c
1 /*
2  *      The Remote User Information Lister -- Utility Functions
3  *
4  *      (c) 1997--2010 Martin Mares <mj@ucw.cz>
5  */
6
7 #include <stdio.h>
8 #include <stdlib.h>
9 #include <stdarg.h>
10
11 #include "nwho.h"
12
13 void
14 die(char *msg, ...)
15 {
16   va_list args;
17
18   va_start(args, msg);
19   fprintf(stderr, "nwhod: ");
20   vfprintf(stderr, msg, args);
21   fputc('\n', stderr);
22   exit(1);
23 }
24