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)
committerLennart Poettering <lennart@poettering.net>
Tue, 15 May 2012 12:13:19 +0000 (14:13 +0200)
Yikes!

src/pulsecore/core-util.c

index fe68965c50c0295be32fe91a68a2c93f87dae039..d896061b26992b2f10f8f10ebe68c1dc4d4377d2 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