summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortpoynor <tpoynor>2005-12-13 00:34:58 +0000
committertpoynor <tpoynor>2005-12-13 00:34:58 +0000
commit34425627ebb5c993c8e60097b117710a45ff108a (patch)
tree5f1450984a3f8849177e0346594108e120f68424 /utils
parentb45320519225450519711395e8ef4ed106701d21 (diff)
Make the "convert" argument to mkyaffs*image optional.
Diffstat (limited to 'utils')
-rw-r--r--utils/mkyaffs2image.c4
-rw-r--r--utils/mkyaffsimage.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/utils/mkyaffs2image.c b/utils/mkyaffs2image.c
index 7649492..fba4cd3 100644
--- a/utils/mkyaffs2image.c
+++ b/utils/mkyaffs2image.c
@@ -44,7 +44,7 @@ unsigned yaffs_traceMask=0;
#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
@@ -461,7 +461,7 @@ int main(int argc, char *argv[])
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");
diff --git a/utils/mkyaffsimage.c b/utils/mkyaffsimage.c
index f07cdd5..fa9479a 100644
--- a/utils/mkyaffsimage.c
+++ b/utils/mkyaffsimage.c
@@ -532,7 +532,7 @@ int main(int argc, char *argv[])
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");