Use the callback function in the call to mkyaffs2image() in _wrapper

Change-Id: Iee385a602e33a44dfa0deee8af49133f16f09d2c
This commit is contained in:
atinm 2011-06-25 18:36:53 -04:00
parent 11cff33332
commit 9759ede732

View File

@ -101,7 +101,7 @@ typedef void (*file_event_callback)(const char* filename);
typedef int (*nandroid_backup_handler)(const char* backup_path, const char* backup_file_image, int callback);
static int mkyaffs2image_wrapper(const char* backup_path, const char* backup_file_image, int callback) {
return mkyaffs2image(backup_path, backup_file_image, 0, callback);
return mkyaffs2image(backup_path, backup_file_image, 0, callback ? yaffs_callback : NULL);
}
static int tar_compress_wrapper(const char* backup_path, const char* backup_file_image, int callback) {