diff options
| author | 2013-11-04 23:19:37 +0100 | |
|---|---|---|
| committer | 2013-11-04 23:19:37 +0100 | |
| commit | 49f549c9dccdb54a4f27931f8069baa73d1d1bf8 (patch) | |
| tree | 25dde4b485b6b8b83c99719e721c179acbfc6a6a /src/misagent.c | |
| parent | 2eaa56006670275faf691ae26679e14dde77e7ed (diff) | |
| download | libimobiledevice-49f549c9dccdb54a4f27931f8069baa73d1d1bf8.tar.gz libimobiledevice-49f549c9dccdb54a4f27931f8069baa73d1d1bf8.tar.bz2 | |
Convert stray spaces to corresponding tabs
Diffstat (limited to 'src/misagent.c')
| -rw-r--r-- | src/misagent.c | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/misagent.c b/src/misagent.c index 750cf52..a9bf89b 100644 --- a/src/misagent.c +++ b/src/misagent.c | |||
| @@ -40,19 +40,19 @@ | |||
| 40 | */ | 40 | */ |
| 41 | static misagent_error_t misagent_error(property_list_service_error_t err) | 41 | static misagent_error_t misagent_error(property_list_service_error_t err) |
| 42 | { | 42 | { |
| 43 | switch (err) { | 43 | switch (err) { |
| 44 | case PROPERTY_LIST_SERVICE_E_SUCCESS: | 44 | case PROPERTY_LIST_SERVICE_E_SUCCESS: |
| 45 | return MISAGENT_E_SUCCESS; | 45 | return MISAGENT_E_SUCCESS; |
| 46 | case PROPERTY_LIST_SERVICE_E_INVALID_ARG: | 46 | case PROPERTY_LIST_SERVICE_E_INVALID_ARG: |
| 47 | return MISAGENT_E_INVALID_ARG; | 47 | return MISAGENT_E_INVALID_ARG; |
| 48 | case PROPERTY_LIST_SERVICE_E_PLIST_ERROR: | 48 | case PROPERTY_LIST_SERVICE_E_PLIST_ERROR: |
| 49 | return MISAGENT_E_PLIST_ERROR; | 49 | return MISAGENT_E_PLIST_ERROR; |
| 50 | case PROPERTY_LIST_SERVICE_E_MUX_ERROR: | 50 | case PROPERTY_LIST_SERVICE_E_MUX_ERROR: |
| 51 | return MISAGENT_E_CONN_FAILED; | 51 | return MISAGENT_E_CONN_FAILED; |
| 52 | default: | 52 | default: |
| 53 | break; | 53 | break; |
| 54 | } | 54 | } |
| 55 | return MISAGENT_E_UNKNOWN_ERROR; | 55 | return MISAGENT_E_UNKNOWN_ERROR; |
| 56 | } | 56 | } |
| 57 | 57 | ||
| 58 | /** | 58 | /** |
| @@ -171,7 +171,7 @@ misagent_error_t misagent_client_free(misagent_client_t client) | |||
| 171 | misagent_error_t misagent_install(misagent_client_t client, plist_t profile) | 171 | misagent_error_t misagent_install(misagent_client_t client, plist_t profile) |
| 172 | { | 172 | { |
| 173 | if (!client || !client->parent || !profile || (plist_get_node_type(profile) != PLIST_DATA)) | 173 | if (!client || !client->parent || !profile || (plist_get_node_type(profile) != PLIST_DATA)) |
| 174 | return MISAGENT_E_INVALID_ARG; | 174 | return MISAGENT_E_INVALID_ARG; |
| 175 | 175 | ||
| 176 | client->last_error = MISAGENT_E_UNKNOWN_ERROR; | 176 | client->last_error = MISAGENT_E_UNKNOWN_ERROR; |
| 177 | 177 | ||
| @@ -184,10 +184,10 @@ misagent_error_t misagent_install(misagent_client_t client, plist_t profile) | |||
| 184 | plist_free(dict); | 184 | plist_free(dict); |
| 185 | dict = NULL; | 185 | dict = NULL; |
| 186 | 186 | ||
| 187 | if (res != MISAGENT_E_SUCCESS) { | 187 | if (res != MISAGENT_E_SUCCESS) { |
| 188 | debug_info("could not send plist, error %d", res); | 188 | debug_info("could not send plist, error %d", res); |
| 189 | return res; | 189 | return res; |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | res = misagent_error(property_list_service_receive_plist(client->parent, &dict)); | 192 | res = misagent_error(property_list_service_receive_plist(client->parent, &dict)); |
| 193 | if (res != MISAGENT_E_SUCCESS) { | 193 | if (res != MISAGENT_E_SUCCESS) { |
| @@ -222,7 +222,7 @@ misagent_error_t misagent_install(misagent_client_t client, plist_t profile) | |||
| 222 | misagent_error_t misagent_copy(misagent_client_t client, plist_t* profiles) | 222 | misagent_error_t misagent_copy(misagent_client_t client, plist_t* profiles) |
| 223 | { | 223 | { |
| 224 | if (!client || !client->parent || !profiles) | 224 | if (!client || !client->parent || !profiles) |
| 225 | return MISAGENT_E_INVALID_ARG; | 225 | return MISAGENT_E_INVALID_ARG; |
| 226 | 226 | ||
| 227 | client->last_error = MISAGENT_E_UNKNOWN_ERROR; | 227 | client->last_error = MISAGENT_E_UNKNOWN_ERROR; |
| 228 | 228 | ||
| @@ -234,10 +234,10 @@ misagent_error_t misagent_copy(misagent_client_t client, plist_t* profiles) | |||
| 234 | plist_free(dict); | 234 | plist_free(dict); |
| 235 | dict = NULL; | 235 | dict = NULL; |
| 236 | 236 | ||
| 237 | if (res != MISAGENT_E_SUCCESS) { | 237 | if (res != MISAGENT_E_SUCCESS) { |
| 238 | debug_info("could not send plist, error %d", res); | 238 | debug_info("could not send plist, error %d", res); |
| 239 | return res; | 239 | return res; |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | res = misagent_error(property_list_service_receive_plist(client->parent, &dict)); | 242 | res = misagent_error(property_list_service_receive_plist(client->parent, &dict)); |
| 243 | if (res != MISAGENT_E_SUCCESS) { | 243 | if (res != MISAGENT_E_SUCCESS) { |
| @@ -273,7 +273,7 @@ misagent_error_t misagent_copy(misagent_client_t client, plist_t* profiles) | |||
| 273 | misagent_error_t misagent_remove(misagent_client_t client, const char* profileID) | 273 | misagent_error_t misagent_remove(misagent_client_t client, const char* profileID) |
| 274 | { | 274 | { |
| 275 | if (!client || !client->parent || !profileID) | 275 | if (!client || !client->parent || !profileID) |
| 276 | return MISAGENT_E_INVALID_ARG; | 276 | return MISAGENT_E_INVALID_ARG; |
| 277 | 277 | ||
| 278 | client->last_error = MISAGENT_E_UNKNOWN_ERROR; | 278 | client->last_error = MISAGENT_E_UNKNOWN_ERROR; |
| 279 | 279 | ||
| @@ -286,10 +286,10 @@ misagent_error_t misagent_remove(misagent_client_t client, const char* profileID | |||
| 286 | plist_free(dict); | 286 | plist_free(dict); |
| 287 | dict = NULL; | 287 | dict = NULL; |
| 288 | 288 | ||
| 289 | if (res != MISAGENT_E_SUCCESS) { | 289 | if (res != MISAGENT_E_SUCCESS) { |
| 290 | debug_info("could not send plist, error %d", res); | 290 | debug_info("could not send plist, error %d", res); |
| 291 | return res; | 291 | return res; |
| 292 | } | 292 | } |
| 293 | 293 | ||
| 294 | res = misagent_error(property_list_service_receive_plist(client->parent, &dict)); | 294 | res = misagent_error(property_list_service_receive_plist(client->parent, &dict)); |
| 295 | if (res != MISAGENT_E_SUCCESS) { | 295 | if (res != MISAGENT_E_SUCCESS) { |
