]> sourceware.org Git - lvm2.git/commitdiff
cov: cast to matching prototype
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 7 May 2024 11:38:10 +0000 (13:38 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 7 May 2024 23:55:21 +0000 (01:55 +0200)
Match function prototype with casting.

daemons/lvmlockd/lvmlockd-dlm.c

index d788cd8cfadc4baaaeb2ed73ae70cacc8da0061b..b58b9dc0f6a4ed53a3260555e2513623908c51d6 100644 (file)
@@ -474,13 +474,13 @@ static int lm_adopt_dlm(struct lockspace *ls, struct resource *r, int ld_mode,
         * dlm returns 0 for success, -EAGAIN if an orphan is
         * found with another mode, and -ENOENT if no orphan.
         *
-        * cast/bast/param are (void *)1 because the kernel
+        * cast/bast/param are (void (*)(void*))1 because the kernel
         * returns errors if some are null.
         */
 
        rv = dlm_ls_lockx(lmd->dh, mode, lksb, flags,
                          r->name, strlen(r->name), 0,
-                         (void *)1, (void *)1, (void *)1,
+                         (void (*)(void*))1, (void (*)(void*))1, (void (*)(void*))1,
                          NULL, NULL);
 
        if (rv == -1 && (errno == EAGAIN)) {
This page took 0.034972 seconds and 5 git commands to generate.