From 9759ede7327d7d96a2839e52cda34d098667d299 Mon Sep 17 00:00:00 2001 From: atinm Date: Sat, 25 Jun 2011 18:36:53 -0400 Subject: [PATCH] Use the callback function in the call to mkyaffs2image() in _wrapper Change-Id: Iee385a602e33a44dfa0deee8af49133f16f09d2c --- nandroid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nandroid.c b/nandroid.c index ae10ca8..af97e86 100644 --- a/nandroid.c +++ b/nandroid.c @@ -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) {