Skip to content

Commit

Permalink
lin_xs_cli: avoid "main is usually a function"
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Jan 18, 2020
1 parent 6e9497a commit a517b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xs/platforms/lin_xs_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ int main(int argc, char* argv[]) // here
}
printf(" lin_xs_cli: main() returned a promise; entering event loop\n");

GMainContext *main = g_main_context_default();
GMainContext *mainctx = g_main_context_default();
while (the->promiseJobsFlag || fxPromiseIsPending(the, &xsVar(2))) {
while (the->promiseJobsFlag) {
the->promiseJobsFlag = 0;
fxRunPromiseJobs(the);
}
g_main_context_iteration(main, TRUE);
g_main_context_iteration(mainctx, TRUE);
}
if (fxPromiseIsRejected(the, &xsVar(2))) {
error = 1;
Expand Down

0 comments on commit a517b52

Please sign in to comment.