diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-07 21:43:42 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2017-01-07 21:43:42 +0000 |
commit | 1ddf95240c77ae0786dd29e14acdf3549be9094c (patch) | |
tree | ebff87b299cb9fec7a841c03ac13e54a9f165952 /src/skaembutils/s6-ln.c | |
parent | 1a5f11e0cf9e5287a50f032838e787c38003a1a4 (diff) | |
download | s6-portable-utils-1ddf95240c77ae0786dd29e14acdf3549be9094c.tar.xz |
Types fix: first pass
Preparation for the skalibs size_t API change.
Diffstat (limited to 'src/skaembutils/s6-ln.c')
-rw-r--r-- | src/skaembutils/s6-ln.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/skaembutils/s6-ln.c b/src/skaembutils/s6-ln.c index d8d95c8..9ed0730 100644 --- a/src/skaembutils/s6-ln.c +++ b/src/skaembutils/s6-ln.c @@ -51,7 +51,7 @@ static void force (char const *old, char const *new, linkfunc_t_ref doit) { if ((*doit)(old, new) == -1) { - unsigned int base = satmp.len ; + size_t base = satmp.len ; if (errno != EEXIST) strerr_diefu5sys(111, "make a link", " from ", new, " to ", old) ; if (!stralloc_catb(&satmp, new, str_len(new)) @@ -104,7 +104,7 @@ int main (int argc, char const *const *argv) { stralloc sa = STRALLOC_ZERO ; unsigned int i = 0 ; - unsigned int base ; + size_t base ; if (!stralloc_cats(&sa, argv[argc-1]) || !stralloc_catb(&sa, "/", 1)) strerr_diefu1sys(111, "stralloc_cats") ; base = sa.len ; |