From bbd813da84c1ff8484bbd3eb7f575775271424da Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 17 Oct 2008 22:58:50 -0700 Subject: Change iphone_debug to be an API call Change the iphone_debug to use the new API --- src/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index c38103d..055cb4b 100644 --- a/src/main.c +++ b/src/main.c @@ -32,7 +32,6 @@ #include -int debug = 1; int main(int argc, char *argv[]) { @@ -41,9 +40,9 @@ int main(int argc, char *argv[]) iphone_device_t phone = NULL; if (argc > 1 && !strcasecmp(argv[1], "--debug")) { - debug = 1; + iphone_set_debug(1); } else { - debug = 0; + iphone_set_debug(0); } if (IPHONE_E_SUCCESS != iphone_get_device(&phone)) { -- cgit v1.1-32-gdbae