From 3643966f676c5084574811ee5c61e6c3b1383575 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 61f980e7d..e6ba46af6 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