summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2000-08-02 21:05:08 +0000
committerEzra Peisach <epeisach@mit.edu>2000-08-02 21:05:08 +0000
commit37d5aa2fd9b2b958864230e6fc2a516ba4a6eb60 (patch)
tree71798710d997e67fc33dfbeef85597ed56bb3908 /src
parentacd4808620b0dc1e7a83befc0b7ede936f7149e3 (diff)
downloadkrb5-37d5aa2fd9b2b958864230e6fc2a516ba4a6eb60.tar.gz
krb5-37d5aa2fd9b2b958864230e6fc2a516ba4a6eb60.tar.xz
krb5-37d5aa2fd9b2b958864230e6fc2a516ba4a6eb60.zip
* tf_util.c (tf_init): Add KRB5_DLLIMP/KRB5_CALLCONV definitions
for functions exported prototypes in krb.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12599 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/lib/krb4/ChangeLog5
-rw-r--r--src/lib/krb4/tf_util.c14
2 files changed, 12 insertions, 7 deletions
diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog
index 499e501f74..25ad9f284d 100644
--- a/src/lib/krb4/ChangeLog
+++ b/src/lib/krb4/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-02 Ezra Peisach <epeisach@mit.edu>
+
+ * tf_util.c (tf_init): Add KRB5_DLLIMP/KRB5_CALLCONV definitions
+ for functions exported prototypes in krb.h.
+
2000-07-21 Ezra Peisach <epeisach@mit.edu>
* g_pw_tkt.c, unix_time.c: Add KRB5_DLLIMP/KRB5_CALLCONV defintion.
diff --git a/src/lib/krb4/tf_util.c b/src/lib/krb4/tf_util.c
index 0d69719cf2..f77a2994a8 100644
--- a/src/lib/krb4/tf_util.c
+++ b/src/lib/krb4/tf_util.c
@@ -80,7 +80,7 @@ static int curpos; /* Position in tfbfr */
static int lastpos; /* End of tfbfr */
static char tfbfr[BUFSIZ]; /* Buffer for ticket data */
-static tf_gets(), tf_read();
+static int tf_gets PROTOTYPE((char *, int)), tf_read PROTOTYPE((char *, int));
/*
* This file contains routines for manipulating the ticket cache file.
@@ -144,7 +144,7 @@ static tf_gets(), tf_read();
* TKT_FIL_LCK - couldn't lock the file, even after a retry
*/
-int tf_init(tf_name, rw)
+KRB5_DLLIMP int KRB5_CALLCONV tf_init(tf_name, rw)
char *tf_name;
int rw;
{
@@ -387,7 +387,7 @@ int tf_init(tf_name, rw)
* was longer than ANAME_SZ, TKT_FIL_FMT is returned.
*/
-int tf_get_pname(p)
+KRB5_DLLIMP int KRB5_CALLCONV tf_get_pname(p)
char *p;
{
if (fd < 0) {
@@ -410,7 +410,7 @@ int tf_get_pname(p)
* instance may be null.
*/
-int tf_get_pinst(inst)
+KRB5_DLLIMP int KRB5_CALLCONV tf_get_pinst(inst)
char *inst;
{
if (fd < 0) {
@@ -434,7 +434,7 @@ int tf_get_pinst(inst)
* EOF - end of file encountered
*/
-int tf_get_cred(c)
+KRB5_DLLIMP int KRB5_CALLCONV tf_get_cred(c)
CREDENTIALS *c;
{
KTEXT ticket = &c->ticket_st; /* pointer to ticket */
@@ -501,7 +501,7 @@ int tf_get_cred(c)
* The return value is not defined.
*/
-void tf_close()
+KRB5_DLLIMP void KRB5_CALLCONV tf_close()
{
if (!(fd < 0)) {
#ifdef TKT_SHMEM
@@ -632,7 +632,7 @@ int tf_save_cred(service, instance, realm, session, lifetime, kvno,
{
off_t lseek();
- int count; /* count for write */
+ unsigned int count; /* count for write */
#ifdef TKT_SHMEM
int *skey_check;
#endif /* TKT_SHMEM */