diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-05-15 14:12:38 +0200 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-07-03 17:16:33 +0530 |
commit | 3643966f676c5084574811ee5c61e6c3b1383575 (patch) | |
tree | c976dba515d90fc09b1baad79b26610e6f36a2c4 | |
parent | 3de505708a362211f8f79e45e9fc87a000279d1b (diff) |
util: use the return value of gethosid() as fallback, not the address of the function
Yikes!
-rw-r--r-- | src/pulsecore/core-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c index 61f980e7..e6ba46af 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 |