FreeBSD libc's setproctitle provides the same interface as proctitle_set so
use it directly.
Signed-off-by: Ed Maste <emaste@adaranet.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
{
}
+#ifndef __FreeBSD__
+/* On FreeBSD we #define this to setproctitle. */
void
proctitle_set(const char *format OVS_UNUSED, ...)
{
}
+#endif
void
proctitle_restore(void)
void run_command(int argc, char *argv[], const struct command[]);
void proctitle_init(int argc, char **argv);
+#ifdef __FreeBSD__
+#define proctitle_set setproctitle
+#else
void proctitle_set(const char *, ...)
PRINTF_FORMAT(1, 2);
+#endif
void proctitle_restore(void);
#endif /* command-line.h */