diff options
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 0274856..5f24e57 100644 --- a/src/common.h +++ b/src/common.h @@ -14,4 +14,10 @@ #define SERVERPORT_S "4950" #define MAXBUFLEN 100 +#define ENP(Cmd, Msg) \ + if ((Cmd) == -1) { \ + perror(Msg); \ + exit(1); \ + } + #endif // UDP_BROADCAST_COMMON |