summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-01-20 06:08:08 +0000
committerguenther <guenther@openbsd.org>2015-01-20 06:08:08 +0000
commit5a86fcf7aeec3c8fdf48d1f103ad3716add36b18 (patch)
treeff52f13de8e86a198c486af1a37117778a9b870e
parentMove struct distoptinfo into distopt.c, killing the DISTOPTINFO typedef (diff)
downloadwireguard-openbsd-5a86fcf7aeec3c8fdf48d1f103ad3716add36b18.tar.xz
wireguard-openbsd-5a86fcf7aeec3c8fdf48d1f103ad3716add36b18.zip
Move MF_* to message.c too
-rw-r--r--usr.bin/rdist/message.c10
-rw-r--r--usr.bin/rdist/types.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/usr.bin/rdist/message.c b/usr.bin/rdist/message.c
index 270177c4251..72933cf2e4a 100644
--- a/usr.bin/rdist/message.c
+++ b/usr.bin/rdist/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.24 2015/01/20 06:02:30 guenther Exp $ */
+/* $OpenBSD: message.c,v 1.25 2015/01/20 06:08:08 guenther Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -76,6 +76,14 @@ struct msgfacility {
FILE *mf_fptr; /* File pointer to output to */
};
+/*
+ * Message Facilities
+ */
+#define MF_STDOUT 1 /* Standard Output */
+#define MF_NOTIFY 2 /* Notify mail service */
+#define MF_FILE 3 /* A normal file */
+#define MF_SYSLOG 4 /* syslog() */
+
static void msgsendstdout(struct msgfacility *, int, int, char *);
static void msgsendsyslog(struct msgfacility *, int, int, char *);
static void msgsendfile(struct msgfacility *, int, int, char *);
diff --git a/usr.bin/rdist/types.h b/usr.bin/rdist/types.h
index 298c6396040..62e5bb10f6d 100644
--- a/usr.bin/rdist/types.h
+++ b/usr.bin/rdist/types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: types.h,v 1.6 2015/01/20 06:02:30 guenther Exp $ */
+/* $OpenBSD: types.h,v 1.7 2015/01/20 06:08:08 guenther Exp $ */
#ifndef __myTYPES_H__
#define __myTYPES_H__
@@ -65,12 +65,4 @@ typedef long opt_t;
MT_INFO|MT_NOTICE|\
MT_SYSLOG|MT_VERBOSE)
-/*
- * Message Facilities
- */
-#define MF_STDOUT 1 /* Standard Output */
-#define MF_NOTIFY 2 /* Notify mail service */
-#define MF_FILE 3 /* A normal file */
-#define MF_SYSLOG 4 /* syslog() */
-
#endif /* __myTYPES_H__ */