1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

misc: Use size_t for len.

This commit is contained in:
Andreas Schneider
2012-10-07 18:06:33 +02:00
parent 0493c1fea9
commit 191faea325

View File

@@ -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(".");