- output=yaffs_unmount("/non_existaint_mount_point/");
- if (output==-1){
- error_code=yaffs_get_error();
- if (abs(error_code)==EINVAL){
+ handle = yaffs_unmount("/nonexisting_mount_point/");
+ if (handle==-1){
+ error_code = yaffs_get_error();
+ if (abs(error_code) == ENODEV){