This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[COMMITTED PATCH] Use proper #include for xdecrypt declarations.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Mon, 26 Aug 2013 15:10:49 -0700 (PDT)
- Subject: [COMMITTED PATCH] Use proper #include for xdecrypt declarations.
- Authentication-results: sourceware.org; auth=none
2013-08-26 Roland McGrath <roland@hack.frob.com>
* nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
instead of explicitly declaring xdecrypt.
* nis/nss_nis/nis-publickey.c: Likewise.
--- a/nis/nss_nis/nis-publickey.c
+++ b/nis/nss_nis/nis-publickey.c
@@ -25,7 +25,7 @@
#include <rpcsvc/yp.h>
#include <rpcsvc/ypclnt.h>
#include <rpc/key_prot.h>
-extern int xdecrypt (char *, char *);
+#include <rpc/des_crypt.h>
#include "nss-nis.h"
--- a/nss/nss_files/files-key.c
+++ b/nss/nss_files/files-key.c
@@ -21,13 +21,11 @@
#include <string.h>
#include <netdb.h>
#include <rpc/key_prot.h>
+#include <rpc/des_crypt.h>
#include "nsswitch.h"
#define DATAFILE "/etc/publickey"
-/* Prototype for function in xcyrpt.c. */
-extern int xdecrypt (char *, char *);
-
static enum nss_status
search (const char *netname, char *result, int *errnop, int secret)