From 191faea3252155b7e99847264a49974d3ba137f5 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sun, 7 Oct 2012 18:06:33 +0200 Subject: [PATCH] misc: Use size_t for len. --- src/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc.c b/src/misc.c index adb0a455..fab3a922 100644 --- a/src/misc.c +++ b/src/misc.c @@ -509,7 +509,7 @@ const void *_ssh_list_pop_head(struct ssh_list *list){ */ char *ssh_dirname (const char *path) { char *new = NULL; - unsigned int len; + size_t len; if (path == NULL || *path == '\0') { return strdup("."); @@ -565,7 +565,7 @@ char *ssh_dirname (const char *path) { char *ssh_basename (const char *path) { char *new = NULL; const char *s; - unsigned int len; + size_t len; if (path == NULL || *path == '\0') { return strdup(".");