output= yaffs_truncate("/yaffs2/foo",10000000000000000000000000000000000000000000 );
if (output<0){
error=yaffs_get_error();
- if (abs(error)==EINVAL){
+ if (abs(error)==EINVAL){ /*in yaffs EINVAL is used instead of EFBIG */
return 1;
}
else {
- printf("recieved a different error than expected\n");
+ printf("received a different error than expected\n");
return -1;
}
}