Fix loop variable signedness
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 6 Oct 2021 05:22:47 +0000 (07:22 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 6 Oct 2021 05:22:47 +0000 (07:22 +0200)
src/test/modules/worker_spi/worker_spi.c

index d0acef26528d8d31dfc0e7866b193fd9dcc06796..0b6246676b6ebc7f4768585b23ea3a498beda42e 100644 (file)
@@ -282,7 +282,6 @@ void
 _PG_init(void)
 {
        BackgroundWorker worker;
-       unsigned int i;
 
        /* get the configuration */
        DefineCustomIntVariable("worker_spi.naptime",
@@ -336,7 +335,7 @@ _PG_init(void)
        /*
         * Now fill in worker-specific data, and do the actual registrations.
         */
-       for (i = 1; i <= worker_spi_total_workers; i++)
+       for (int i = 1; i <= worker_spi_total_workers; i++)
        {
                snprintf(worker.bgw_name, BGW_MAXLEN, "worker_spi worker %d", i);
                snprintf(worker.bgw_type, BGW_MAXLEN, "worker_spi");