summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-19 11:13:56 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-19 16:56:47 -0700
commitd95bc26cd3686d345136b34462cc77b591b459ba (patch)
treed5dd8cf2e9ae0a49916a917f6dbd4edf09ececa4
parente0ca083dada62cff23b58e9c55b48c854a436ff8 (diff)
Fix -Wsign-conversion warning from clang
lndir.c:174:18: warning: implicit conversion changes signedness: 'nlink_t' (aka 'unsigned int') to 'int' [-Wsign-conversion] n_dirs = fs->st_nlink; ~ ~~~~^~~~~~~~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--lndir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lndir.c b/lndir.c
index ad49d0a..6a03379 100644
--- a/lndir.c
+++ b/lndir.c
@@ -147,7 +147,7 @@ dodir (const char *fn, /* name of "from" directory, either absolute or
char symbuf[MAXPATHLEN + 1];
char basesym[MAXPATHLEN + 1];
struct stat sb, sc;
- int n_dirs;
+ unsigned int n_dirs;
ssize_t symlen;
ssize_t basesymlen = -1;
char *ocurdir;