drop the int argument (the error code) from the logging function

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12118 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-04-23 17:58:34 +00:00
parent 7217eb2214
commit 144e19b123
2 changed files with 4 additions and 5 deletions

View File

@@ -45,7 +45,7 @@ RCSID("$Id$");
#define ToAsciiUpper(c) ((c) - 'a' + 'A')
static void (*kafs_verbose)(void *, const char *, int);
static void (*kafs_verbose)(void *, const char *);
static void *kafs_verbose_ctx;
void
@@ -60,7 +60,7 @@ _kafs_foldup(char *a, const char *b)
}
void
kafs_set_verbose(void (*f)(void *, const char *, int), void *ctx)
kafs_set_verbose(void (*f)(void *, const char *), void *ctx)
{
if (f) {
kafs_verbose = f;
@@ -374,7 +374,7 @@ _kafs_try_get_cred(kafs_data *data, const char *user, const char *cell,
asprintf(&str, "%s tried afs%s%s@%s -> %d",
data->name, cell[0] == '\0' ? "" : "/",
cell, realm, ret);
(*kafs_verbose)(kafs_verbose_ctx, str, ret);
(*kafs_verbose)(kafs_verbose_ctx, str);
free(str);
}

View File

@@ -144,8 +144,7 @@ int k_afs_cell_of_file __P((const char *path, char *cell, int len));
#define KRB5_H_INCLUDED
#endif
void kafs_set_verbose __P((void (*kafs_verbose)(void *, const char *, int),
void *));
void kafs_set_verbose __P((void (*kafs_verbose)(void *, const char *), void *));
int kafs_settoken_rxkad __P((const char *, struct ClearToken *,
void *ticket, size_t ticket_len));
#ifdef KRB_H_INCLUDED