summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2003-08-26 20:34:46 +0000
committerKen Raeburn <raeburn@mit.edu>2003-08-26 20:34:46 +0000
commit6ff6e760396f3d9b0ba426888f84d237416feeab (patch)
tree590b509c0155ef35a9deb92b0a679fcd0804db6c /src/lib
parentd76a990dd74a544ab4c390697058ada9dbd9f4f4 (diff)
* cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4, krb5_fcc_store_ui_2)
(krb5_fcc_store_octet): Remove gratuitous conditionalizing of casts on USE_STDIO, left over from merge. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15797 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/ChangeLog6
-rw-r--r--src/lib/krb5/ccache/cc_file.c51
2 files changed, 6 insertions, 51 deletions
diff --git a/src/lib/krb5/ccache/ChangeLog b/src/lib/krb5/ccache/ChangeLog
index 3b7edf26d..4d6ea3149 100644
--- a/src/lib/krb5/ccache/ChangeLog
+++ b/src/lib/krb5/ccache/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-26 Ken Raeburn <raeburn@mit.edu>
+
+ * cc_file.c (krb5_fcc_store_int32, krb5_fcc_store_ui_4)
+ (krb5_fcc_store_ui_2, krb5_fcc_store_octet): Remove gratuitous
+ conditionalizing of casts on USE_STDIO, left over from merge.
+
2003-07-22 Sam Hartman <hartmans@mit.edu>
* ccbase.c: Always register the file credentials cache type. If
diff --git a/src/lib/krb5/ccache/cc_file.c b/src/lib/krb5/ccache/cc_file.c
index eb051c150..09ce8d55e 100644
--- a/src/lib/krb5/ccache/cc_file.c
+++ b/src/lib/krb5/ccache/cc_file.c
@@ -971,30 +971,13 @@ krb5_fcc_store_int32(krb5_context context, krb5_ccache id, krb5_int32 i)
(data->version == KRB5_FCC_FVNO_2))
return krb5_fcc_write(context, id, (char *) &i, sizeof(krb5_int32));
else {
-#ifndef USE_STDIO
buf[3] = (unsigned char) (i & 0xFF);
-#else
- buf[3] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[2] = (unsigned char) (i & 0xFF);
-#else
- buf[2] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[1] = (unsigned char) (i & 0xFF);
-#else
- buf[1] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[0] = (unsigned char) (i & 0xFF);
-#else
- buf[0] = i & 0xFF;
-#endif
-
return krb5_fcc_write(context, id, buf, 4);
}
}
@@ -1009,30 +992,13 @@ krb5_fcc_store_ui_4(krb5_context context, krb5_ccache id, krb5_ui_4 i)
(data->version == KRB5_FCC_FVNO_2))
return krb5_fcc_write(context, id, (char *) &i, sizeof(krb5_int32));
else {
-#ifndef USE_STDIO
buf[3] = (unsigned char) (i & 0xFF);
-#else
- buf[3] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[2] = (unsigned char) (i & 0xFF);
-#else
- buf[2] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[1] = (unsigned char) (i & 0xFF);
-#else
- buf[1] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[0] = (unsigned char) (i & 0xFF);
-#else
- buf[0] = i & 0xFF;
-#endif
-
return krb5_fcc_write(context, id, buf, 4);
}
}
@@ -1046,25 +1012,12 @@ krb5_fcc_store_ui_2(krb5_context context, krb5_ccache id, krb5_int32 i)
if ((data->version == KRB5_FCC_FVNO_1) ||
(data->version == KRB5_FCC_FVNO_2)) {
-#ifndef USE_STDIO
ibuf = (krb5_ui_2) i;
-#else
- ibuf = i;
-#endif
return krb5_fcc_write(context, id, (char *) &ibuf, sizeof(krb5_ui_2));
} else {
-#ifndef USE_STDIO
buf[1] = (unsigned char) (i & 0xFF);
-#else
- buf[1] = i & 0xFF;
-#endif
i >>= 8;
-#ifndef USE_STDIO
buf[0] = (unsigned char) (i & 0xFF);
-#else
- buf[0] = i & 0xFF;
-#endif
-
return krb5_fcc_write(context, id, buf, 2);
}
}
@@ -1074,11 +1027,7 @@ krb5_fcc_store_octet(krb5_context context, krb5_ccache id, krb5_int32 i)
{
krb5_octet ibuf;
-#ifndef USE_STDIO
ibuf = (krb5_octet) i;
-#else
- ibuf = i;
-#endif
return krb5_fcc_write(context, id, (char *) &ibuf, 1);
}