summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-09-11 12:03:14 +0200
committerGravatar Nikias Bassen2014-09-11 12:03:14 +0200
commite5fbc1dce53acbb92d1aaa83b2784c25f286f80f (patch)
tree8d4f21ac1ec8049befc3ded9d3b24477dead5eb6 /src
parent36d522c13352f782a692c9ebc18cae2c39005895 (diff)
downloadlibusbmuxd-e5fbc1dce53acbb92d1aaa83b2784c25f286f80f.tar.gz
libusbmuxd-e5fbc1dce53acbb92d1aaa83b2784c25f286f80f.tar.bz2
Return 0 on success in usbmuxd_read_buid()
Diffstat (limited to 'src')
-rw-r--r--src/libusbmuxd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libusbmuxd.c b/src/libusbmuxd.c
index 4e2054d..ef3d155 100644
--- a/src/libusbmuxd.c
+++ b/src/libusbmuxd.c
@@ -1098,7 +1098,7 @@ int usbmuxd_read_buid(char **buid)
{
int sfd;
int tag;
- int ret = 0;
+ int ret = -1;
if (!buid) {
return -EINVAL;
@@ -1124,6 +1124,7 @@ int usbmuxd_read_buid(char **buid)
if (node && plist_get_node_type(node) == PLIST_STRING) {
plist_get_string_val(node, buid);
}
+ ret = 0;
} else if (ret == 1) {
ret = -(int)rc;
}