10000l do return somethng from main (how the hell did I forgot that ? I always do it usually) :)

Also dump some usage for --help


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10460 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2004-12-14 23:36:03 +00:00
parent 549831215d
commit bcc306b637

View File

@ -18,6 +18,10 @@ int main(int argc, char **argv)
int scan_index = 0;
int fd_dev;
if (argc == 2 && !strcmp(argv[1], "--help")) {
printf("usage: rescan [driver]\n");
return 0;
}
if (argc > 1) {
scan = scan_names = argv;
scan_count = argc;
@ -29,5 +33,6 @@ int main(int argc, char **argv)
write(fd_dev, scan[scan_index], strlen(scan[scan_index]));
close(fd_dev);
}
return 0;
}