From bea524cb7aafad1be122f0a4b580ae3df9dc1d40 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 May 2012 14:12:38 +0200 Subject: [PATCH] util: use the return value of gethosid() as fallback, not the address of the function Yikes! --- src/pulsecore/core-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index fe68965c5..d896061b2 100644 --- a/src/pulsecore/core-util.c +++ b/src/pulsecore/core-util.c @@ -2749,7 +2749,7 @@ char *pa_machine_id(void) { #ifndef OS_IS_WIN32 /* If no hostname was set we use the POSIX hostid. It's usually * the IPv4 address. Might not be that stable. */ - return pa_sprintf_malloc("%08lx", (unsigned long) gethostid); + return pa_sprintf_malloc("%08lx", (unsigned long) gethostid()); #else return NULL; #endif