main return code is 1 on error
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17949 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+4
-4
@@ -252,7 +252,7 @@ main(int argc, char *argv[])
|
|||||||
// Updated Usage string to reflect "do", "the", bare -index, and '"name"' changes below
|
// Updated Usage string to reflect "do", "the", bare -index, and '"name"' changes below
|
||||||
// -- [email protected] 1999-11-03
|
// -- [email protected] 1999-11-03
|
||||||
|
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32 argapp = 1;
|
int32 argapp = 1;
|
||||||
@@ -280,11 +280,11 @@ main(int argc, char *argv[])
|
|||||||
teamid = atoi(argv[argapp]);
|
teamid = atoi(argv[argapp]);
|
||||||
if (teamid > 0) {
|
if (teamid > 0) {
|
||||||
if (be_roster->GetRunningAppInfo(teamid, &appinfo)!=B_OK)
|
if (be_roster->GetRunningAppInfo(teamid, &appinfo)!=B_OK)
|
||||||
return -1;
|
return 1;
|
||||||
the_application=BMessenger(NULL, teamid);
|
the_application=BMessenger(NULL, teamid);
|
||||||
if (!parse(the_application, argc, argv, argapp))
|
if (!parse(the_application, argc, argv, argapp))
|
||||||
return 0;
|
return 0;
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
be_roster->GetAppList(&team_list);
|
be_roster->GetAppList(&team_list);
|
||||||
@@ -305,7 +305,7 @@ main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user