summaryrefslogtreecommitdiffstats
path: root/src/ipsw.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-05-21 04:04:10 -0400
committerGravatar Joshua Hill2010-05-21 04:04:10 -0400
commit996010895b4f92e37ce4ee535cd404b61ba314b5 (patch)
tree67bcd2a3a7e99d8e2ec97e9c1275f52e1579a7d1 /src/ipsw.c
parentbb587b216f9e50918491b1edcafc298452026a2b (diff)
downloadidevicerestore-996010895b4f92e37ce4ee535cd404b61ba314b5.tar.gz
idevicerestore-996010895b4f92e37ce4ee535cd404b61ba314b5.tar.bz2
Added ECID detection
Diffstat (limited to 'src/ipsw.c')
-rw-r--r--src/ipsw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipsw.c b/src/ipsw.c
index d33d95f..05a92c6 100644
--- a/src/ipsw.c
+++ b/src/ipsw.c
@@ -24,6 +24,10 @@
#include <string.h>
#include "ipsw.h"
+#define error(...) fprintf(stderr, __VA_ARGS__)
+#define info(...) if(verbose >= 1) fprintf(stderr, __VA_ARGS__)
+#define debug(...) if(verbose >= 2) fprintf(stderr, __VA_ARGS__)
+
ipsw_archive* ipsw_open(const char* ipsw) {
int err = 0;
ipsw_archive* archive = (ipsw_archive*) malloc(sizeof(ipsw_archive));