diff options
Diffstat (limited to 'contrib/ntp/libntp/modetoa.c')
-rw-r--r-- | contrib/ntp/libntp/modetoa.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/contrib/ntp/libntp/modetoa.c b/contrib/ntp/libntp/modetoa.c deleted file mode 100644 index 405aef8..0000000 --- a/contrib/ntp/libntp/modetoa.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * modetoa - return an asciized mode - */ -#include <stdio.h> - -#include "lib_strbuf.h" -#include "ntp_stdlib.h" - -const char * -modetoa( - int mode - ) -{ - char *bp; - static const 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]; -} |