aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-07 18:06:33 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-07 18:06:33 +0200
commit191faea3252155b7e99847264a49974d3ba137f5 (patch)
treec1baa562eeae8ec2e7ad6912bf685da26f53fddf /src
parent0493c1fea9977dafd45cac62e2c961b347fe7bc3 (diff)
downloadlibssh-191faea3252155b7e99847264a49974d3ba137f5.tar.gz
libssh-191faea3252155b7e99847264a49974d3ba137f5.tar.xz
libssh-191faea3252155b7e99847264a49974d3ba137f5.zip
misc: Use size_t for len.
Diffstat (limited to 'src')
-rw-r--r--src/misc.c4
1 files 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(".");