projects
/
profile
/
ivi
/
pulseaudio-panda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3de5057
)
util: use the return value of gethosid() as fallback, not the address of the function
author
Lennart Poettering
<lennart@poettering.net>
Tue, 15 May 2012 12:12:38 +0000
(14:12 +0200)
committer
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Tue, 3 Jul 2012 11:46:33 +0000
(17:16 +0530)
Yikes!
src/pulsecore/core-util.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/core-util.c
b/src/pulsecore/core-util.c
index
61f980e
..
e6ba46a
100644
(file)
--- 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