summaryrefslogtreecommitdiff
path: root/lib/krb5.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-10-08 12:25:07 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-10-08 12:25:07 +0200
commitb90f6e87cf2acd1f4e1516a220ad1e23f826f788 (patch)
tree5d198523d32c9c9b4d5d8c318676b113423b84b4 /lib/krb5.c
parent987a4a7367ac8df32628ba738342e2206582f1e7 (diff)
downloadcurl-b90f6e87cf2acd1f4e1516a220ad1e23f826f788.tar.gz
krb5_encode: remove unused argument
Coverity CID 1241957. Removed the unused argument. As this struct and pointer now are used only for krb5, there's no need to keep unused function arguments around.
Diffstat (limited to 'lib/krb5.c')
-rw-r--r--lib/krb5.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/krb5.c b/lib/krb5.c
index 7e82a6805..bc90c1218 100644
--- a/lib/krb5.c
+++ b/lib/krb5.c
@@ -2,7 +2,7 @@
*
* Copyright (c) 1995, 1996, 1997, 1998, 1999, 2013 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
- * Copyright (c) 2004 - 2012 Daniel Stenberg
+ * Copyright (c) 2004 - 2014 Daniel Stenberg
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -121,8 +121,7 @@ krb5_overhead(void *app_data, int level, int len)
}
static int
-krb5_encode(void *app_data, const void *from, int length, int level, void **to,
- struct connectdata *conn UNUSED_PARAM)
+krb5_encode(void *app_data, const void *from, int length, int level, void **to)
{
gss_ctx_id_t *context = app_data;
gss_buffer_desc dec, enc;
@@ -130,9 +129,6 @@ krb5_encode(void *app_data, const void *from, int length, int level, void **to,
int state;
int len;
- /* shut gcc up */
- conn = NULL;
-
/* NOTE that the cast is safe, neither of the krb5, gnu gss and heimdal
* libraries modify the input buffer in gss_seal()
*/