forked from pool/libtirpc
42 lines
1.0 KiB
Diff
42 lines
1.0 KiB
Diff
|
From d5e4d0651f9ecc8e7e4110f080a862746d9baa0a Mon Sep 17 00:00:00 2001
|
||
|
From: Thorsten Kukuk <kukuk@thkukuk.de>
|
||
|
Date: Mon, 14 Mar 2016 13:43:54 +0100
|
||
|
Subject: [PATCH 5/5] Fix includes to compile without deprecated glibc
|
||
|
functions
|
||
|
|
||
|
Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
|
||
|
---
|
||
|
src/des_impl.c | 3 ++-
|
||
|
tirpc/rpc/des.h | 2 +-
|
||
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/src/des_impl.c b/src/des_impl.c
|
||
|
index c5b7ed6..9dbccaf 100644
|
||
|
--- a/src/des_impl.c
|
||
|
+++ b/src/des_impl.c
|
||
|
@@ -6,7 +6,8 @@
|
||
|
/* see <http://www.gnu.org/licenses/> to obtain a copy. */
|
||
|
#include <string.h>
|
||
|
#include <stdint.h>
|
||
|
-#include <rpc/rpc_des.h>
|
||
|
+#include <sys/types.h>
|
||
|
+#include <rpc/des.h>
|
||
|
|
||
|
|
||
|
static const uint32_t des_SPtrans[8][64] =
|
||
|
diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h
|
||
|
index d2881ad..018aa48 100644
|
||
|
--- a/tirpc/rpc/des.h
|
||
|
+++ b/tirpc/rpc/des.h
|
||
|
@@ -82,6 +82,6 @@ struct desparams {
|
||
|
/*
|
||
|
* Software DES.
|
||
|
*/
|
||
|
-extern int _des_crypt( char *, int, struct desparams * );
|
||
|
+extern int _des_crypt( char *, unsigned, struct desparams * );
|
||
|
|
||
|
#endif
|
||
|
--
|
||
|
1.8.5.6
|
||
|
|