diff options
| author | 2013-03-18 17:50:02 +0100 | |
|---|---|---|
| committer | 2013-03-18 17:50:02 +0100 | |
| commit | 1b26aa5876df307b051012ac56fe0bb7530e11b7 (patch) | |
| tree | e3e6bdbd9966137b3a9033393ff5978e1323f406 /src | |
| parent | 1641d9a8e82a0c5f1ad6968916fce2e63187c400 (diff) | |
| download | ideviceinstaller-1b26aa5876df307b051012ac56fe0bb7530e11b7.tar.gz ideviceinstaller-1b26aa5876df307b051012ac56fe0bb7530e11b7.tar.bz2 | |
Fix compiling of correct code depending on version of libimobiledevice
Diffstat (limited to 'src')
| -rw-r--r-- | src/ideviceinstaller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c index 54bd318..7682536 100644 --- a/src/ideviceinstaller.c +++ b/src/ideviceinstaller.c | |||
| @@ -68,7 +68,7 @@ int op_completed = 0; | |||
| 68 | int err_occured = 0; | 68 | int err_occured = 0; |
| 69 | int notified = 0; | 69 | int notified = 0; |
| 70 | 70 | ||
| 71 | #ifdef HAVE_LIBIMOBILEDEVICE_1_0 | 71 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 |
| 72 | static void notifier(const char *notification, void *unused) | 72 | static void notifier(const char *notification, void *unused) |
| 73 | #else | 73 | #else |
| 74 | static void notifier(const char *notification) | 74 | static void notifier(const char *notification) |
| @@ -419,7 +419,7 @@ int main(int argc, char **argv) | |||
| 419 | goto leave_cleanup; | 419 | goto leave_cleanup; |
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | #ifdef HAVE_LIBIMOBILEDEVICE_1_0 | 422 | #ifdef HAVE_LIBIMOBILEDEVICE_1_1 |
| 423 | np_set_notify_callback(np, notifier, NULL); | 423 | np_set_notify_callback(np, notifier, NULL); |
| 424 | #else | 424 | #else |
| 425 | np_set_notify_callback(np, notifier); | 425 | np_set_notify_callback(np, notifier); |
