summaryrefslogtreecommitdiffstats
path: root/cpukit/telnetd/des.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-25 08:08:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-25 08:10:18 +0200
commitf4c59d07d5d639856887e6aec624d608e8024cf7 (patch)
tree245e553ca6fb8c123a69176db60600fc4f26d7ea /cpukit/telnetd/des.c
parentpppd: Fix warnings (diff)
downloadrtems-f4c59d07d5d639856887e6aec624d608e8024cf7.tar.bz2
telnetd: Fix warnings
Diffstat (limited to 'cpukit/telnetd/des.c')
-rw-r--r--cpukit/telnetd/des.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/cpukit/telnetd/des.c b/cpukit/telnetd/des.c
index 542e89681d..1d0295a644 100644
--- a/cpukit/telnetd/des.c
+++ b/cpukit/telnetd/des.c
@@ -74,6 +74,8 @@
#include <string.h>
#include <stdlib.h>
+#include "des.h"
+
#define REENTRANT
/* Re-entrantify me -- all this junk needs to be in
* struct crypt_data to make this really reentrant... */
@@ -263,7 +265,7 @@ ascii_to_bin(char ch)
return(0);
}
-struct Des_Context *
+static struct Des_Context *
des_ctx_init(void)
{
struct Des_Context *des_ctx;
@@ -834,14 +836,6 @@ bailout:
return rval;
}
-char *
-__des_crypt(const char *key, const char *setting)
-{
- static char output[21];
- return __des_crypt_r(key, setting, output, sizeof(output));
-}
-
-
#ifdef DEBUG
void