projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d6962
)
use "rb" for STDC
author
John Kohl
<jtkohl@mit.edu>
Fri, 19 Apr 1991 14:52:44 +0000
(14:52 +0000)
committer
John Kohl
<jtkohl@mit.edu>
Fri, 19 Apr 1991 14:52:44 +0000
(14:52 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2012
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/kdb/fetch_mkey.c
patch
|
blob
|
history
diff --git
a/src/lib/kdb/fetch_mkey.c
b/src/lib/kdb/fetch_mkey.c
index 388fdc0119ccfa2978406075dd6416276e51a235..d7fb0f377bcda03cfdfa6b103250b18f70b27636 100644
(file)
--- 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;