diff options
| author | Alexander Barton <alex@barton.de> | 2013-12-29 17:48:25 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-12-29 17:48:25 +0100 |
| commit | 18070e5381b7d66963dbe990c98b06b5c601e280 (patch) | |
| tree | 107b1325222d2787e5cc73c3e227e3943729425c /src | |
| parent | d913323ca9a0900e836bc4f786850f303c0486ea (diff) | |
| download | ngircd-18070e5381b7d66963dbe990c98b06b5c601e280.tar.gz ngircd-18070e5381b7d66963dbe990c98b06b5c601e280.zip | |
portabtest: Only use one exit code to indicate errors
Diffstat (limited to 'src')
| -rw-r--r-- | src/portab/portabtest.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/portab/portabtest.c b/src/portab/portabtest.c index 335954a4..8284c1d0 100644 --- a/src/portab/portabtest.c +++ b/src/portab/portabtest.c @@ -24,33 +24,33 @@ #include "exp.h" -static void Panic PARAMS (( char *Reason, int Code )); +static void Panic PARAMS((char *Reason)); GLOBAL int main(void) { /* validate datatypes */ if (false != 0) - Panic("false", 1); + Panic("false"); if (true != 1) - Panic("true", 1); + Panic("true"); if (sizeof(UINT8) != 1) - Panic("UINT8", 1); + Panic("UINT8"); if (sizeof(UINT16) != 2) - Panic("UINT16", 1); + Panic("UINT16"); if (sizeof(UINT32) != 4) - Panic("UINT32", 1); + Panic("UINT32"); #ifdef PROTOTYPES /* check functions */ if (!snprintf) - Panic("snprintf", 2); + Panic("snprintf"); if (!vsnprintf) - Panic("vsnprintf", 2); + Panic("vsnprintf"); if (!strlcpy) - Panic("strlcpy", 2); + Panic("strlcpy"); if (!strlcat) - Panic("strlcat", 2); + Panic("strlcat"); #endif /* ok, no error */ @@ -58,11 +58,11 @@ main(void) } /* portab_check_types */ static void -Panic(char *Reason, int Code) +Panic(char *Reason) { /* Oops, something failed!? */ fprintf(stderr, "Oops, test for %s failed!?", Reason); - exit(Code); + exit(1); } /* Panic */ /* -eof- */ |