use "rb" for STDC
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Apr 1991 14:52:44 +0000 (14:52 +0000)
committerJohn 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

index 388fdc0119ccfa2978406075dd6416276e51a235..d7fb0f377bcda03cfdfa6b103250b18f70b27636 100644 (file)
@@ -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;