summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2019-06-16 01:16:01 +0200
committerGravatar Nikias Bassen2019-06-16 01:16:01 +0200
commit1369f43fd5cf06e983f6399971d64284d39c9ddd (patch)
tree63ec28e59c54f53ba218648afbf0fedd91fe709c
parent7c00b369a3665cd0aeae228b2a2866da8ee027fd (diff)
downloadlibimobiledevice-1369f43fd5cf06e983f6399971d64284d39c9ddd.tar.gz
libimobiledevice-1369f43fd5cf06e983f6399971d64284d39c9ddd.tar.bz2
service: Fix typo SERIVCE_E_NOT_ENOUGH_DATA to SERVICE_E_NOT_ENOUGH_DATA
-rw-r--r--include/libimobiledevice/service.h6
-rw-r--r--src/property_list_service.c2
-rw-r--r--src/service.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h
index 5c43e29..facf03b 100644
--- a/include/libimobiledevice/service.h
+++ b/include/libimobiledevice/service.h
@@ -37,7 +37,7 @@ typedef enum {
37 SERVICE_E_MUX_ERROR = -3, 37 SERVICE_E_MUX_ERROR = -3,
38 SERVICE_E_SSL_ERROR = -4, 38 SERVICE_E_SSL_ERROR = -4,
39 SERVICE_E_START_SERVICE_ERROR = -5, 39 SERVICE_E_START_SERVICE_ERROR = -5,
40 SERIVCE_E_NOT_ENOUGH_DATA = -6, 40 SERVICE_E_NOT_ENOUGH_DATA = -6,
41 SERVICE_E_TIMEOUT = -7, 41 SERVICE_E_TIMEOUT = -7,
42 SERVICE_E_UNKNOWN_ERROR = -256 42 SERVICE_E_UNKNOWN_ERROR = -256
43} service_error_t; 43} service_error_t;
@@ -134,7 +134,7 @@ service_error_t service_receive_with_timeout(service_client_t client, char *data
134 * 134 *
135 * @return SERVICE_E_SUCCESS on success, 135 * @return SERVICE_E_SUCCESS on success,
136 * SERVICE_E_INVALID_ARG when one or more parameters are 136 * SERVICE_E_INVALID_ARG when one or more parameters are
137 * invalid, SERIVCE_E_NOT_ENOUGH_DATA when not enough data 137 * invalid, SERVICE_E_NOT_ENOUGH_DATA when not enough data
138 * received, SERVICE_E_TIMEOUT when the connection times out, 138 * received, SERVICE_E_TIMEOUT when the connection times out,
139 * SERVICE_E_MUX_ERROR when a communication error 139 * SERVICE_E_MUX_ERROR when a communication error
140 * occurs, or SERVICE_E_UNKNOWN_ERROR when an unspecified 140 * occurs, or SERVICE_E_UNKNOWN_ERROR when an unspecified
@@ -150,7 +150,7 @@ service_error_t service_receive(service_client_t client, char *data, uint32_t si
150 * 150 *
151 * @return SERVICE_E_SUCCESS on success, 151 * @return SERVICE_E_SUCCESS on success,
152 * SERVICE_E_INVALID_ARG if client or client->connection is 152 * SERVICE_E_INVALID_ARG if client or client->connection is
153 * NULL, SERIVCE_E_NOT_ENOUGH_DATA when not enough data 153 * NULL, SERVICE_E_NOT_ENOUGH_DATA when not enough data
154 * received, SERVICE_E_TIMEOUT when the connection times out, 154 * received, SERVICE_E_TIMEOUT when the connection times out,
155 * SERVICE_E_SSL_ERROR when SSL could not be enabled, 155 * SERVICE_E_SSL_ERROR when SSL could not be enabled,
156 * or SERVICE_E_UNKNOWN_ERROR otherwise. 156 * or SERVICE_E_UNKNOWN_ERROR otherwise.
diff --git a/src/property_list_service.c b/src/property_list_service.c
index a6e3e24..1cb8dc9 100644
--- a/src/property_list_service.c
+++ b/src/property_list_service.c
@@ -48,7 +48,7 @@ static property_list_service_error_t service_to_property_list_service_error(serv
48 return PROPERTY_LIST_SERVICE_E_MUX_ERROR; 48 return PROPERTY_LIST_SERVICE_E_MUX_ERROR;
49 case SERVICE_E_SSL_ERROR: 49 case SERVICE_E_SSL_ERROR:
50 return PROPERTY_LIST_SERVICE_E_SSL_ERROR; 50 return PROPERTY_LIST_SERVICE_E_SSL_ERROR;
51 case SERIVCE_E_NOT_ENOUGH_DATA: 51 case SERVICE_E_NOT_ENOUGH_DATA:
52 return PROPERTY_LIST_SERVICE_E_NOT_ENOUGH_DATA; 52 return PROPERTY_LIST_SERVICE_E_NOT_ENOUGH_DATA;
53 case SERVICE_E_TIMEOUT: 53 case SERVICE_E_TIMEOUT:
54 return PROPERTY_LIST_SERVICE_E_RECEIVE_TIMEOUT; 54 return PROPERTY_LIST_SERVICE_E_RECEIVE_TIMEOUT;
diff --git a/src/service.c b/src/service.c
index 57d987c..661c4f6 100644
--- a/src/service.c
+++ b/src/service.c
@@ -47,7 +47,7 @@ static service_error_t idevice_to_service_error(idevice_error_t err)
47 case IDEVICE_E_SSL_ERROR: 47 case IDEVICE_E_SSL_ERROR:
48 return SERVICE_E_SSL_ERROR; 48 return SERVICE_E_SSL_ERROR;
49 case IDEVICE_E_NOT_ENOUGH_DATA: 49 case IDEVICE_E_NOT_ENOUGH_DATA:
50 return SERIVCE_E_NOT_ENOUGH_DATA; 50 return SERVICE_E_NOT_ENOUGH_DATA;
51 case IDEVICE_E_TIMEOUT: 51 case IDEVICE_E_TIMEOUT:
52 return SERVICE_E_TIMEOUT; 52 return SERVICE_E_TIMEOUT;
53 default: 53 default: