From f8112b9a74d717edb867ca0d7776ca13becb7156 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 19 Apr 1991 14:52:44 +0000 Subject: [PATCH] use "rb" for STDC git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2012 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/kdb/fetch_mkey.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/kdb/fetch_mkey.c b/src/lib/kdb/fetch_mkey.c index 388fdc011..d7fb0f377 100644 --- a/src/lib/kdb/fetch_mkey.c +++ b/src/lib/kdb/fetch_mkey.c @@ -98,7 +98,11 @@ OLDDECLARG(krb5_keyblock *,key) realm->length)); (void) strcat(defkeyfile, ""); +#if defined(__STDC__) + if (!(kf = fopen(defkeyfile, "rb"))) +#else if (!(kf = fopen(defkeyfile, "r"))) +#endif return KRB5_KDB_CANTREAD_STORED; if (fread((krb5_pointer) &keytype, sizeof(keytype), 1, kf) != 1) { retval = KRB5_KDB_CANTREAD_STORED; -- 2.26.2