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 {
SERVICE_E_MUX_ERROR = -3,
SERVICE_E_SSL_ERROR = -4,
SERVICE_E_START_SERVICE_ERROR = -5,
- SERIVCE_E_NOT_ENOUGH_DATA = -6,
+ SERVICE_E_NOT_ENOUGH_DATA = -6,
SERVICE_E_TIMEOUT = -7,
SERVICE_E_UNKNOWN_ERROR = -256
} service_error_t;
@@ -134,7 +134,7 @@ service_error_t service_receive_with_timeout(service_client_t client, char *data
*
* @return SERVICE_E_SUCCESS on success,
* SERVICE_E_INVALID_ARG when one or more parameters are
- * invalid, SERIVCE_E_NOT_ENOUGH_DATA when not enough data
+ * invalid, SERVICE_E_NOT_ENOUGH_DATA when not enough data
* received, SERVICE_E_TIMEOUT when the connection times out,
* SERVICE_E_MUX_ERROR when a communication error
* 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
*
* @return SERVICE_E_SUCCESS on success,
* SERVICE_E_INVALID_ARG if client or client->connection is
- * NULL, SERIVCE_E_NOT_ENOUGH_DATA when not enough data
+ * NULL, SERVICE_E_NOT_ENOUGH_DATA when not enough data
* received, SERVICE_E_TIMEOUT when the connection times out,
* SERVICE_E_SSL_ERROR when SSL could not be enabled,
* 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
return PROPERTY_LIST_SERVICE_E_MUX_ERROR;
case SERVICE_E_SSL_ERROR:
return PROPERTY_LIST_SERVICE_E_SSL_ERROR;
- case SERIVCE_E_NOT_ENOUGH_DATA:
+ case SERVICE_E_NOT_ENOUGH_DATA:
return PROPERTY_LIST_SERVICE_E_NOT_ENOUGH_DATA;
case SERVICE_E_TIMEOUT:
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)
case IDEVICE_E_SSL_ERROR:
return SERVICE_E_SSL_ERROR;
case IDEVICE_E_NOT_ENOUGH_DATA:
- return SERIVCE_E_NOT_ENOUGH_DATA;
+ return SERVICE_E_NOT_ENOUGH_DATA;
case IDEVICE_E_TIMEOUT:
return SERVICE_E_TIMEOUT;
default: