diff options
author | Nikias Bassen | 2013-02-28 02:17:27 +0100 |
---|---|---|
committer | Nikias Bassen | 2013-02-28 02:17:27 +0100 |
commit | 31f24dd31bdd84308799123c8508d211291bb21d (patch) | |
tree | e06b5241d3c69cc29ebf38e57948815495b11aea /src/service.c | |
parent | 4b8644d16731415058376164ab20569961fec99c (diff) | |
download | libimobiledevice-31f24dd31bdd84308799123c8508d211291bb21d.tar.gz libimobiledevice-31f24dd31bdd84308799123c8508d211291bb21d.tar.bz2 |
service: use correct int16_t instead of uint16_t for error codes
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c index 738db02..959c9fb 100644 --- a/src/service.c +++ b/src/service.c @@ -103,7 +103,7 @@ service_error_t service_client_new(idevice_t device, lockdownd_service_descripto * @return SERVICE_E_SUCCESS on success, or a SERVICE_E_* error code * otherwise. */ -service_error_t service_client_factory_start_service(idevice_t device, const char* service_name, void **client, const char* label, uint16_t (*constructor_func)(idevice_t, lockdownd_service_descriptor_t, void**), uint16_t *error_code) +service_error_t service_client_factory_start_service(idevice_t device, const char* service_name, void **client, const char* label, int16_t (*constructor_func)(idevice_t, lockdownd_service_descriptor_t, void**), int16_t *error_code) { *client = NULL; @@ -122,9 +122,9 @@ service_error_t service_client_factory_start_service(idevice_t device, const cha return SERVICE_E_START_SERVICE_ERROR; } - uint16_t ec; + int16_t ec; if (constructor_func) { - ec = (uint16_t)constructor_func(device, service, client); + ec = (int16_t)constructor_func(device, service, client); } else { ec = service_client_new(device, service, (service_client_t*)client); } |