summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-15 14:12:38 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-15 14:13:19 +0200
commitbea524cb7aafad1be122f0a4b580ae3df9dc1d40 (patch)
tree9ed0a3462ea91abd74c8ef12240ad51eb7beb30a
parent10f146ddc889c2300d69198eeedb1672b7f87022 (diff)
util: use the return value of gethosid() as fallback, not the address of the function
Yikes!
-rw-r--r--src/pulsecore/core-util.c2
1 files changed, 1 insertions, 1 deletions
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