Check-in [e59a1c5a65]

Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1 Hash:e59a1c5a6526519e449806db0a1b8a6ad81ae4db
Date: 2009-06-15 20:11:51
User: stephan
Comment:minor C99 incompatibility fix for tcc.
Tags And Properties
Changes
hide diffs unified diffs patch

Changes to WHEFSApp.c

Old (627c6ebc7624e625) New (a649b854b9e3ca0e)
1 /** 1 /**
2 Code which is not part of libwhefs but may be shared between vfs-related tools. 2 Code which is not part of libwhefs but may be shared between vfs-related tools.
3 It provides a very minimal app framework for whefs applications, like 'ls', 3 It provides a very minimal app framework for whefs applications, like 'ls',
4 'cp', 'mkfs' and friends. 4 'cp', 'mkfs' and friends.
5 5
606 hidden lines
612 } 612 }
613 ArgSpec * arr[2] = {0,0}; 613 ArgSpec * arr[2] = {0,0};
614 arr[0] = &WHEFSApp_SharedArgs[0]; 614 arr[0] = &WHEFSApp_SharedArgs[0];
615 arr[1] = argspec; 615 arr[1] = argspec;
616 bool gotSpec = false; 616 bool gotSpec = false;
617 for( int i = 0; i <= 2; ++i ) | 617 int i = 0;
| 618 for( i = 0; i <= 2; ++i )
618 { 619 {
619 ArgSpec * as = arr[i]; 620 ArgSpec * as = arr[i];
620 for( ; as && as->name; ++as ) 621 for( ; as && as->name; ++as )
621 { 622 {
622 gotSpec = (0 == strcmp( as->name, garg->key )); 623 gotSpec = (0 == strcmp( as->name, garg->key ));
39 hidden lines
662 } 663 }
663 } 664 }
664 return whefs_rc.OK; 665 return whefs_rc.OK;
665 } 666 }
666 667