From 8483da5dd7845d52de0f70221df39a690542f66a Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 26 Sep 2013 22:21:28 +0200 Subject: Convert spaces to tabs were needed --- src/libirecovery.c | 8 ++++---- tools/irecovery.c | 18 ++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/libirecovery.c b/src/libirecovery.c index 90fa785..6f155e5 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -495,8 +495,8 @@ static int irecv_get_string_descriptor_ascii(irecv_client_t client, uint8_t desc if (data[si + 1]) { /* high byte */ buffer[di++] = '?'; - } else { - buffer[di++] = data[si]; + } else { + buffer[di++] = data[si]; } } buffer[di] = 0; @@ -686,7 +686,7 @@ irecv_error_t irecv_set_interface(irecv_client_t client, int interface, int alt_ irecv_error_t irecv_reset(irecv_client_t client) { if (check_context(client) != IRECV_E_SUCCESS) return IRECV_E_NO_DEVICE; - + #ifndef WIN32 libusb_reset_device(client->handle); #else @@ -714,7 +714,7 @@ irecv_error_t irecv_open_attempts(irecv_client_t* pclient, unsigned long long ec } } - return IRECV_E_UNABLE_TO_CONNECT; + return IRECV_E_UNABLE_TO_CONNECT; } irecv_error_t irecv_event_subscribe(irecv_client_t client, irecv_event_type type, irecv_event_cb_t callback, void* user_data) { diff --git a/tools/irecovery.c b/tools/irecovery.c index 9ae0cf9..f398ec1 100644 --- a/tools/irecovery.c +++ b/tools/irecovery.c @@ -142,7 +142,6 @@ static void init_shell(irecv_client_t client) { irecv_event_subscribe(client, IRECV_POSTCOMMAND, &postcommand_cb, NULL); while (!quit) { error = irecv_receive(client); - if (error != IRECV_E_SUCCESS) { debug("%s\n", irecv_strerror(error)); break; @@ -275,14 +274,14 @@ int main(int argc, char* argv[]) { case 'i': if (optarg) { char* tail = NULL; - ecid = strtoull(optarg, &tail, 16); - if (tail && (tail[0] != '\0')) { - ecid = 0; - } - if (ecid == 0) { - fprintf(stderr, "ERROR: Could not parse ECID from argument '%s'\n", optarg); - return -1; - } + ecid = strtoull(optarg, &tail, 16); + if (tail && (tail[0] != '\0')) { + ecid = 0; + } + if (ecid == 0) { + fprintf(stderr, "ERROR: Could not parse ECID from argument '%s'\n", optarg); + return -1; + } } break; @@ -398,4 +397,3 @@ int main(int argc, char* argv[]) { irecv_close(client); return 0; } - -- cgit v1.1-32-gdbae