* fish/tilde.c (find_home_for_username): Change param type: s/int/size_t/
(try_tilde_expansion): Adjust caller.
#include "fish.h"
static char *expand_home (const char *);
#include "fish.h"
static char *expand_home (const char *);
-static const char *find_home_for_username (const char *, int);
+static const char *find_home_for_username (const char *, size_t);
/* This is called from the script loop if we find a candidate for
* ~username (tilde-expansion).
/* This is called from the script loop if we find a candidate for
* ~username (tilde-expansion).
* username from the password file.
*/
else {
* username from the password file.
*/
else {
-
- len = strcspn (&str[1], "/");
+ size_t len = strcspn (&str[1], "/");
rest = &str[1+len];
home = find_home_for_username (&str[1], len);
rest = &str[1+len];
home = find_home_for_username (&str[1], len);
* or NULL if not found.
*/
static const char *
* or NULL if not found.
*/
static const char *
-find_home_for_username (const char *username, int ulen)
+find_home_for_username (const char *username, size_t ulen)