Skip to content
Snippets Groups Projects
Commit 936d2bfd authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

cleaned up

Rev: bin/rsif:1.2
parent 558796d8
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,11 @@ int main(int argc,string *argv) ...@@ -7,11 +7,11 @@ int main(int argc,string *argv)
if(argc<4) if(argc<4)
{ {
write("Usage: rsif <from> <to> <files>\n"); perror("Usage: rsif <from> <to> <files>\n");
return 0; return 1;
} }
for(i=3; i<sizeof(argv); i++) for(i=3; i<argc; i++)
{ {
if(file=read_bytes(argv[i])) if(file=read_bytes(argv[i]))
{ {
...@@ -29,4 +29,6 @@ int main(int argc,string *argv) ...@@ -29,4 +29,6 @@ int main(int argc,string *argv)
} }
} }
} }
return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment