Make the "convert" argument to mkyaffs*image optional.
authortpoynor <tpoynor>
Tue, 13 Dec 2005 00:34:58 +0000 (00:34 +0000)
committertpoynor <tpoynor>
Tue, 13 Dec 2005 00:34:58 +0000 (00:34 +0000)
utils/mkyaffs2image.c
utils/mkyaffsimage.c

index 7649492c4515205b37b8c05b83948049c628e185..fba4cd3eede41379cb43f5dbf4d73290209aaa95 100644 (file)
@@ -44,7 +44,7 @@ unsigned yaffs_traceMask=0;
 #define chunkSize 2048
 #define spareSize 64
 
 #define chunkSize 2048
 #define spareSize 64
 
-const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.1 2005-11-02 06:45:24 charles Exp $";
+const char * mkyaffsimage_c_version = "$Id: mkyaffs2image.c,v 1.2 2005-12-13 00:34:58 tpoynor Exp $";
 
 
 typedef struct
 
 
 typedef struct
@@ -461,7 +461,7 @@ int main(int argc, char *argv[])
        
        printf("mkyaffs2image: image building tool for YAFFS2 built "__DATE__"\n");
        
        
        printf("mkyaffs2image: image building tool for YAFFS2 built "__DATE__"\n");
        
-       if(argc <= 3)
+       if(argc < 3)
        {
                printf("usage: mkyaffs2image dir image_file [convert]\n");
                printf("           dir        the directory tree to be converted\n");
        {
                printf("usage: mkyaffs2image dir image_file [convert]\n");
                printf("           dir        the directory tree to be converted\n");
index f07cdd5820c0d64d4c1c767214611aaee24ac994..fa9479ad3b227e7e32469b5386121255fcd49be1 100644 (file)
@@ -532,7 +532,7 @@ int main(int argc, char *argv[])
        
        printf("mkyaffsimage: image building tool for YAFFS built "__DATE__"\n");
        
        
        printf("mkyaffsimage: image building tool for YAFFS built "__DATE__"\n");
        
-       if(argc <= 3)
+       if(argc < 3)
        {
                printf("usage: mkyaffsimage dir image_file [convert]\n");
                printf("           dir        the directory tree to be converted\n");
        {
                printf("usage: mkyaffsimage dir image_file [convert]\n");
                printf("           dir        the directory tree to be converted\n");