util: use the return value of gethosid() as fallback, not the address of the function
authorLennart Poettering <lennart@poettering.net>
Tue, 15 May 2012 12:12:38 +0000 (14:12 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Tue, 3 Jul 2012 11:46:33 +0000 (17:16 +0530)
Yikes!

src/pulsecore/core-util.c

index 61f980e..e6ba46a 100644 (file)
@@ -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