about summary refs log tree commit homepage
path: root/svc_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'svc_dev.c')
-rw-r--r--svc_dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/svc_dev.c b/svc_dev.c
index e57f0b6..b2beec3 100644
--- a/svc_dev.c
+++ b/svc_dev.c
@@ -95,7 +95,7 @@ static void svc_init_dev_hash(struct mog_svc *svc)
         mog_oom_if_null(svc->by_st_dev);
 }
 
-static int svc_scandev(struct mog_svc *svc, size_t *nr, mog_scandev_cb cb)
+static int svc_scandev(struct mog_svc *svc, unsigned *nr, mog_scandev_cb cb)
 {
         struct dirent *ent;
         int rc = 0;
@@ -278,7 +278,7 @@ void mog_svc_dev_shutdown(void)
 static bool svc_mkusage_each(void *svcptr, void *ignored)
 {
         struct mog_svc *svc = svcptr;
-        size_t ndev = 0;
+        unsigned ndev = 0;
 
         svc_scandev(svc, &ndev, mog_dev_mkusage);
 
@@ -295,16 +295,16 @@ void mog_mkusage_all(void)
 }
 
 /* we should never set ioq_max == 0 */
-static void svc_rescale_warn_fix_capa(struct mog_svc *svc, size_t ndev_new)
+static void svc_rescale_warn_fix_capa(struct mog_svc *svc, unsigned ndev_new)
 {
         if (svc->thr_per_dev != 0)
                 return;
 
         syslog(LOG_WARNING,
-               "serving %s with fewer aio_threads(%zu) than devices(%zu)",
+               "serving %s with fewer aio_threads(%u) than devices(%u)",
                svc->docroot, svc->user_set_aio_threads, ndev_new);
         syslog(LOG_WARNING,
-               "set \"server aio_threads = %zu\" or higher via sidechannel",
+               "set \"server aio_threads = %u\" or higher via sidechannel",
                ndev_new);
 
         svc->thr_per_dev = 1;