From 4c77d2b1ff3af8758f63cc384e86cc630e111a97 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Wed, 15 Aug 2007 00:31:01 +0000 Subject: [PATCH] sprintf conversion to snprintf in r19703 introduced some signed/unsigned warnings. Cleanup. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19823 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ccdefname.c | 6 +++--- src/lib/krb5/os/gen_rname.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/krb5/os/ccdefname.c b/src/lib/krb5/os/ccdefname.c index 8fa52f7b8..8d42a965a 100644 --- a/src/lib/krb5/os/ccdefname.c +++ b/src/lib/krb5/os/ccdefname.c @@ -143,7 +143,7 @@ try_dir( #endif #if defined(_WIN32) -static krb5_error_code get_from_os(char *name_buf, int name_size) +static krb5_error_code get_from_os(char *name_buf, unsigned int name_size) { char *prefix = krb5_cc_dfl_ops->prefix; int size; @@ -197,7 +197,7 @@ static krb5_error_code get_from_os(char *name_buf, int name_size) #if defined(USE_CCAPI) -static krb5_error_code get_from_os(char *name_buf, int name_size) +static krb5_error_code get_from_os(char *name_buf, unsigned int name_size) { krb5_error_code result = 0; cc_context_t cc_context = NULL; @@ -232,7 +232,7 @@ cleanup: #else #if !(defined(_WIN32)) -static krb5_error_code get_from_os(char *name_buf, int name_size) +static krb5_error_code get_from_os(char *name_buf, unsigned int name_size) { snprintf(name_buf, name_size, "FILE:/tmp/krb5cc_%ld", (long) getuid()); return 0; diff --git a/src/lib/krb5/os/gen_rname.c b/src/lib/krb5/os/gen_rname.c index 609815338..a0e46d05e 100644 --- a/src/lib/krb5/os/gen_rname.c +++ b/src/lib/krb5/os/gen_rname.c @@ -36,7 +36,7 @@ krb5_gen_replay_name(krb5_context context, const krb5_address *address, const ch { char * tmp; int i; - int len; + unsigned int len; len = strlen(uniq) + (address->length * 2) + 1; if ((*string = malloc(len)) == NULL) -- 2.26.2