[pulseaudio-discuss] [PATCH 10/10] Repair some typos

Maarten Bosmans mkbosmans at gmail.com
Wed Jan 5 17:39:57 PST 2011


---
 src/pulsecore/core-util.c     |    8 ++++----
 src/pulsecore/socket-client.c |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/pulsecore/core-util.c b/src/pulsecore/core-util.c
index f8e471d..0434576 100644
--- a/src/pulsecore/core-util.c
+++ b/src/pulsecore/core-util.c
@@ -1171,23 +1171,23 @@ int pa_check_in_group(gid_t g) {
 #else /* HAVE_GRP_H */
 
 int pa_own_uid_in_group(const char *name, gid_t *gid) {
-    errno = ENOSUP;
+    errno = ENOTSUP;
     return -1;
 
 }
 
 int pa_uid_in_group(uid_t uid, const char *name) {
-    errno = ENOSUP;
+    errno = ENOTSUP;
     return -1;
 }
 
 gid_t pa_get_gid_of_group(const char *name) {
-    errno = ENOSUP;
+    errno = ENOTSUP;
     return (gid_t) -1;
 }
 
 int pa_check_in_group(gid_t g) {
-    errno = ENOSUP;
+    errno = ENOTSUP;
     return -1;
 }
 
diff --git a/src/pulsecore/socket-client.c b/src/pulsecore/socket-client.c
index 31acfd2..ae7abc9 100644
--- a/src/pulsecore/socket-client.c
+++ b/src/pulsecore/socket-client.c
@@ -522,7 +522,7 @@ pa_socket_client* pa_socket_client_new_string(pa_mainloop_api *m, pa_bool_t use_
                 if (!host)
                     goto finish;
 
-                pa_zero(sa);
+                pa_zero(s);
                 s.sin_family = AF_INET;
                 memcpy(&s.sin_addr, host->h_addr, sizeof(struct in_addr));
                 s.sin_port = htons(a.port);
-- 
1.7.1




More information about the pulseaudio-discuss mailing list