messages_dgm: Fix an incorrect cast
authorVolker Lendecke <vl@samba.org>
Tue, 29 Sep 2015 22:30:49 +0000 (00:30 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 30 Sep 2015 15:36:32 +0000 (17:36 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 30 17:36:32 CEST 2015 on sn-devel-104

source3/lib/messages_dgm.c

index 79b2ce7f2334229f35885bcb986f69c1ccf7a778..944602ac59f1928047291a7e8d05dd7582d0381c 100644 (file)
@@ -77,7 +77,7 @@ static int messaging_dgm_lockfile_create(struct messaging_dgm_context *ctx,
        ssize_t written;
 
        ret = snprintf(lockfile_name.buf, sizeof(lockfile_name.buf),
-                      "%s/%u", ctx->lockfile_dir.buf, (int)pid);
+                      "%s/%u", ctx->lockfile_dir.buf, (unsigned)pid);
        if (ret >= sizeof(lockfile_name.buf)) {
                return ENAMETOOLONG;
        }