diff options
Diffstat (limited to 'dev/main.c')
| -rw-r--r-- | dev/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -128,7 +128,7 @@ int main(int argc, char *argv[]) | |||
| 128 | afc_open_file(afc, "/com.apple.itunes.lock_sync", AFC_FOPEN_RW, &lockfile); | 128 | afc_open_file(afc, "/com.apple.itunes.lock_sync", AFC_FOPEN_RW, &lockfile); |
| 129 | if (lockfile) { | 129 | if (lockfile) { |
| 130 | printf("locking file\n"); | 130 | printf("locking file\n"); |
| 131 | afc_lock_file(afc, lockfile, 2 | 4); | 131 | afc_lock_file(afc, lockfile, AFC_LOCK_EX); |
| 132 | 132 | ||
| 133 | perform_notification(phone, client, NP_SYNC_DID_START); | 133 | perform_notification(phone, client, NP_SYNC_DID_START); |
| 134 | } | 134 | } |
| @@ -227,7 +227,7 @@ int main(int argc, char *argv[]) | |||
| 227 | //perform_notification(phone, control, NP_SYNC_DID_FINISH); | 227 | //perform_notification(phone, control, NP_SYNC_DID_FINISH); |
| 228 | 228 | ||
| 229 | printf("XXX unlocking file\n"); | 229 | printf("XXX unlocking file\n"); |
| 230 | afc_lock_file(afc, lockfile, 8 | 4); | 230 | afc_lock_file(afc, lockfile, AFC_LOCK_UN); |
| 231 | 231 | ||
| 232 | printf("XXX closing file\n"); | 232 | printf("XXX closing file\n"); |
| 233 | afc_close_file(afc, lockfile); | 233 | afc_close_file(afc, lockfile); |
