diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-19 11:13:56 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-10-19 16:56:47 -0700 |
commit | d95bc26cd3686d345136b34462cc77b591b459ba (patch) | |
tree | d5dd8cf2e9ae0a49916a917f6dbd4edf09ececa4 | |
parent | e0ca083dada62cff23b58e9c55b48c854a436ff8 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |