now returns 1 in case of error, not -1, as Korli asked.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19676 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-01-02 07:03:11 +00:00
parent 8959497d14
commit 13b0cc8c5d

View File

@ -64,14 +64,14 @@ main(int32 argc, char** argv)
else {
fprintf(stderr,
"%s: option %s is not understood (use --help for help)\n", argv[0], argv[i]);
return -1;
return 1;
}
} else {
volumeDevice = dev_for_path(argv[i]);
if (volumeDevice < 0) {
fprintf(stderr, "%s: can't get information about volume: %s\n", argv[0], argv[i]);
return -1;
return 1;
}
}
}
@ -85,6 +85,6 @@ main(int32 argc, char** argv)
return 0;
} else {
fprintf(stderr, "%s: can't get information about dev_t: %ld\n", argv[0], volumeDevice);
return -1;
return 1;
}
}