summaryrefslogtreecommitdiffstats
path: root/tools/irecovery.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2013-09-26 22:21:28 +0200
committerGravatar Martin Szulecki2013-09-26 22:21:28 +0200
commit8483da5dd7845d52de0f70221df39a690542f66a (patch)
treecc6eb5b69fa4ce370e12a277f1b4d8445871c5c2 /tools/irecovery.c
parent503c7edca291bb5a0b9cd14e47f71c5fadfe37c3 (diff)
downloadlibirecovery-8483da5dd7845d52de0f70221df39a690542f66a.tar.gz
libirecovery-8483da5dd7845d52de0f70221df39a690542f66a.tar.bz2
Convert spaces to tabs were needed
Diffstat (limited to 'tools/irecovery.c')
-rw-r--r--tools/irecovery.c18
1 files changed, 8 insertions, 10 deletions
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;
}
-