]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: spoe-server: rename "worker" functions
authorThierry FOURNIER <thierry.fournier@ozon.io>
Fri, 23 Feb 2018 10:59:15 +0000 (11:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 13 May 2019 15:43:47 +0000 (17:43 +0200)
"worker" name is a little bit generic and it is used in many
places, so it is hard to find the expected symbol.

contrib/spoa_server/spoa.c

index 94be6c05502e07bc5b551a1c5c8c02ca17a9bfea..b08c1d6967aa5735342a99560f67bf0af6dbd351 100644 (file)
@@ -918,7 +918,7 @@ error_or_quit:
 }
 
 static void *
-worker(void *data)
+spoa_worker(void *data)
 {
        struct worker w;
        struct sockaddr_in client;
@@ -1056,7 +1056,7 @@ main(int argc, char **argv)
 
                info[0] = sock;
                info[1] = i+1;
-               if (pthread_create(&ts[i], NULL,  worker, info) < 0) {
+               if (pthread_create(&ts[i], NULL,  spoa_worker, info) < 0) {
                        fprintf(stderr, "Failed to create thread %d: %m\n", i+1);
                        goto error;
                }