summaryrefslogtreecommitdiffstats
path: root/osdep-openbsd.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-01-27 19:44:10 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-01-27 19:44:10 +0000
commitd697090fa451e9d78b31fdfff89f333d827ddd0a (patch)
tree09e7b1389cc2e2f6ff56fe087e9b7a8b52c389d5 /osdep-openbsd.c
parenta239d80e884abdbd575f011ab13c76211274d1c1 (diff)
+nitems.
Diffstat (limited to 'osdep-openbsd.c')
-rw-r--r--osdep-openbsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/osdep-openbsd.c b/osdep-openbsd.c
index e35a355a..9bf55847 100644
--- a/osdep-openbsd.c
+++ b/osdep-openbsd.c
@@ -1,4 +1,4 @@
-/* $Id: osdep-openbsd.c,v 1.3 2009-01-26 22:57:19 nicm Exp $ */
+/* $Id: osdep-openbsd.c,v 1.4 2009-01-27 19:44:10 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -28,6 +28,8 @@
#include <string.h>
#include <unistd.h>
+#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
+
char *get_argv0(int, char *);
char *get_proc_argv0(pid_t);