projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10f146d
)
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
Lennart Poettering
<lennart@poettering.net>
Tue, 15 May 2012 12:13:19 +0000
(14:13 +0200)
Yikes!
src/pulsecore/core-util.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/core-util.c
b/src/pulsecore/core-util.c
index fe68965c50c0295be32fe91a68a2c93f87dae039..d896061b26992b2f10f8f10ebe68c1dc4d4377d2 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