From 5a86fcf7aeec3c8fdf48d1f103ad3716add36b18 Mon Sep 17 00:00:00 2001 From: guenther Date: Tue, 20 Jan 2015 06:08:08 +0000 Subject: [PATCH] Move MF_* to message.c too --- usr.bin/rdist/message.c | 10 +++++++++- usr.bin/rdist/types.h | 10 +--------- 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__ */ -- 2.20.1