Skip to content

Commit

Permalink
fix return values
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Apr 6, 2018
1 parent e036f88 commit 9422452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion programs/colorRegionDetection/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int main(int argc, char** argv) {
yarp::os::Network yarp;
if (!yarp.checkNetwork()) {
fprintf(stderr,"[fail]\n%s found no yarp network (try running \"yarpserver &\"), bye!\n",argv[0]);
return -1;
return 1;
} else printf("[ok]\n");

return mod.runModule(rf);
Expand Down
2 changes: 1 addition & 1 deletion programs/kinectPxToReal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main(int argc, char *argv[]) {
Network yarp;
if (!yarp.checkNetwork()) {
fprintf(stderr, "[fail]\nkinectPxToReal found no yarp network (try running \"yarpserver &\"), bye!\n");
return -1;
return 1;
} else printf("[ok]\n");

return mod.runModule(rf);
Expand Down

0 comments on commit 9422452

Please sign in to comment.