summaryrefslogtreecommitdiff
path: root/libcrypt/crypt.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-26 02:28:55 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-26 02:28:55 +0000
commit41cb95ae3f21e21a3c63a8e2f9fd1b92b70852fa (patch)
tree98d40e3f5c9bc75ba9766ab4162be9c6529d9eda /libcrypt/crypt.c
parent8161b6d9e1b7dedcab64ece3de34c23dbacef7c7 (diff)
Adjust function naming and make sure everything is properly
static to avoid symbol leakage. -Erik
Diffstat (limited to 'libcrypt/crypt.c')
-rw-r--r--libcrypt/crypt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrypt/crypt.c b/libcrypt/crypt.c
index 4c489ed36..9c41bdaec 100644
--- a/libcrypt/crypt.c
+++ b/libcrypt/crypt.c
@@ -27,17 +27,17 @@
/* For use by the old, non-reentrant routines (crypt/encrypt/setkey) */
static struct crypt_data __crypt_data;
-char * crypt(const char *key, const char *salt)
+extern char * crypt(const char *key, const char *salt)
{
return crypt_r (key, salt, &__crypt_data);
}
-void setkey(const char *key)
+extern void setkey(const char *key)
{
return setkey_r(key, &__crypt_data);
}
-void encrypt(char *block, int edflag)
+extern void encrypt(char *block, int edflag)
{
return encrypt_r(block, edflag, &__crypt_data);
}