diff options
author | roberto <roberto@FreeBSD.org> | 1999-12-22 15:24:45 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 1999-12-22 15:24:45 +0000 |
commit | 07fa87617ade0f00e9d60fa4b1079cac165d6059 (patch) | |
tree | daf1c2e9a599e9dfc97305d8b5252e8630bea9b9 /usr.sbin/xntpd/lib/modetoa.c | |
parent | 5960602b89278a9a46eb40f3716de826681c1072 (diff) | |
download | FreeBSD-src-07fa87617ade0f00e9d60fa4b1079cac165d6059.zip FreeBSD-src-07fa87617ade0f00e9d60fa4b1079cac165d6059.tar.gz |
Bye bye xntpd.
Diffstat (limited to 'usr.sbin/xntpd/lib/modetoa.c')
-rw-r--r-- | usr.sbin/xntpd/lib/modetoa.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/usr.sbin/xntpd/lib/modetoa.c b/usr.sbin/xntpd/lib/modetoa.c deleted file mode 100644 index e8292b3..0000000 --- a/usr.sbin/xntpd/lib/modetoa.c +++ /dev/null @@ -1,33 +0,0 @@ -/* - * modetoa - return an asciized mode - */ -#include <stdio.h> - -#include "lib_strbuf.h" -#include "ntp_stdlib.h" - -char * -modetoa(mode) - int mode; -{ - char *bp; - static char *modestrings[] = { - "unspec", - "sym_active", - "sym_passive", - "client", - "server", - "broadcast", - "control", - "private", - "bclient", - }; - - if (mode < 0 || mode >= (sizeof modestrings)/sizeof(char *)) { - LIB_GETBUF(bp); - (void)sprintf(bp, "mode#%d", mode); - return bp; - } - - return modestrings[mode]; -} |