sprintf conversion to snprintf in r19703 introduced some signed/unsigned
authorEzra Peisach <epeisach@mit.edu>
Wed, 15 Aug 2007 00:31:01 +0000 (00:31 +0000)
committerEzra Peisach <epeisach@mit.edu>
Wed, 15 Aug 2007 00:31:01 +0000 (00:31 +0000)
warnings. Cleanup.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19823 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/os/ccdefname.c
src/lib/krb5/os/gen_rname.c

index 8fa52f7b810960692da22ad8067393bdbe428f2d..8d42a965a5319acb8f189fa1b8dff711744415a6 100644 (file)
@@ -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;
index 6098153386d4c413a9cdd7dbe7b1b3267b18b094..a0e46d05e6dea6ea34991a580078b3a3d25b34dc 100644 (file)
@@ -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)