Convert usages of errx to h_platform_errx

This BSD call will have to be implemented on windows. Right now
we have a stub that just exits the process.
This commit is contained in:
Nicolas Léveillé 2015-08-09 18:38:27 +02:00
parent c8726244ae
commit 0c35525e30
10 changed files with 63 additions and 12 deletions

View file

@ -24,9 +24,9 @@
#define HAMMER_INTERNAL__H
#include <stdint.h>
#include <assert.h>
#include <err.h>
#include <string.h>
#include "hammer.h"
#include "platform.h"
/* "Internal" in this case means "we're not ready to commit
* to a public API." Many structures and routines here will be
@ -38,7 +38,7 @@
#else
#define assert_message(check, message) do { \
if (!(check)) \
errx(1, "Assertion failed (programmer error): %s", message); \
h_platform_errx(1, "Assertion failed (programmer error): %s", message); \
} while(0)
#endif