aboutsummaryrefslogtreecommitdiff
path: root/sntp/libopts/autoopts.h
diff options
context:
space:
mode:
Diffstat (limited to 'sntp/libopts/autoopts.h')
-rw-r--r--sntp/libopts/autoopts.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sntp/libopts/autoopts.h b/sntp/libopts/autoopts.h
index ac0a199bfd1e..6987958cd111 100644
--- a/sntp/libopts/autoopts.h
+++ b/sntp/libopts/autoopts.h
@@ -258,7 +258,7 @@ typedef struct {
#define AGALOC(c, w) ao_malloc((size_t)c)
#define AGREALOC(p, c, w) ao_realloc((void*)p, (size_t)c)
-#define AGFREE(_p) free((void *)_p)
+#define AGFREE(p) free((void *)(intptr_t)p)
#define AGDUPSTR(p, s, w) (p = ao_strdup(s))
static void *
@@ -452,7 +452,7 @@ typedef enum { AOFLAG_TABLE } ao_flags_t;
#undef _aof_
static char const zNil[] = "";
-static arg_types_t argTypes = { NULL };
+static arg_types_t argTypes = { 0 };
static char line_fmt_buf[32];
static bool displayEnum = false;
static char const pkgdatadir_default[] = PKGDATADIR;