Skip to content

Commit 2e163ae

Browse files
committed
djdev64: fix warning
djdev64.c: In function '_djdev64_open': djdev64.c:208:11: warning: 'main' is usually a function [-Wmain] void *main;
1 parent 78ca54b commit 2e163ae

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/djdev64/djdev64.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ static int _djdev64_open(const char *path, const struct dj64_api *api,
205205
dj64done_t *done;
206206
dj64init_once_t *init_once;
207207
dj64cdispatch_t **cdisp;
208-
void *main;
208+
void *m;
209209
void *dlh = NULL;
210210
const char **v;
211211
char *path2 = NULL;
@@ -290,8 +290,8 @@ static int _djdev64_open(const char *path, const struct dj64_api *api,
290290
return -1;
291291
}
292292

293-
main = dlsym(dlh, "main");
294-
if (!main) {
293+
m = dlsym(dlh, "main");
294+
if (!m) {
295295
fprintf(stderr, "cannot find main\n");
296296
goto err_close;
297297
}
@@ -317,7 +317,7 @@ static int _djdev64_open(const char *path, const struct dj64_api *api,
317317
goto err_close;
318318
}
319319
full = (use_dlm || (flags & FLG_STATIC) || !handles);
320-
cdisp = init(handles, &eops, main, full);
320+
cdisp = init(handles, &eops, m, full);
321321
if (!cdisp) {
322322
fprintf(stderr, _S(DJ64_INIT_FN) " failed\n");
323323
goto err_close;

0 commit comments

Comments
 (0)