mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-19 08:57:00 -05:00
Fix indentation.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@394 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
e9be6fa6d3
commit
a24102cda4
1 changed files with 12 additions and 12 deletions
24
polyp/util.c
24
polyp/util.c
|
|
@ -264,23 +264,23 @@ char *pa_get_user_name(char *s, size_t l) {
|
||||||
#ifdef HAVE_GETPWUID_R
|
#ifdef HAVE_GETPWUID_R
|
||||||
if (getpwuid_r(getuid(), &pw, buf, sizeof(buf), &r) != 0 || !r) {
|
if (getpwuid_r(getuid(), &pw, buf, sizeof(buf), &r) != 0 || !r) {
|
||||||
#else
|
#else
|
||||||
/* XXX Not thread-safe, but needed on OSes (e.g. FreeBSD 4.X)
|
/* XXX Not thread-safe, but needed on OSes (e.g. FreeBSD 4.X)
|
||||||
* that do not support getpwuid_r. */
|
* that do not support getpwuid_r. */
|
||||||
if ((r = getpwuid(getuid())) == NULL) {
|
if ((r = getpwuid(getuid())) == NULL) {
|
||||||
#endif
|
#endif
|
||||||
snprintf(s, l, "%lu", (unsigned long) getuid());
|
snprintf(s, l, "%lu", (unsigned long) getuid());
|
||||||
return s;
|
return s;
|
||||||
}
|
|
||||||
|
|
||||||
p = r->pw_name;
|
|
||||||
#else /* HAVE_PWD_H */
|
|
||||||
return NULL;
|
|
||||||
#endif /* HAVE_PWD_H */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return pa_strlcpy(s, p, l);
|
p = r->pw_name;
|
||||||
|
#else /* HAVE_PWD_H */
|
||||||
|
return NULL;
|
||||||
|
#endif /* HAVE_PWD_H */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return pa_strlcpy(s, p, l);
|
||||||
|
}
|
||||||
|
|
||||||
/* Return the current hostname in the specified buffer. */
|
/* Return the current hostname in the specified buffer. */
|
||||||
char *pa_get_host_name(char *s, size_t l) {
|
char *pa_get_host_name(char *s, size_t l) {
|
||||||
assert(s && l > 0);
|
assert(s && l > 0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue