Skip to content

Commit b0e0f9b

Browse files
committed
warning free
1 parent 461535f commit b0e0f9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/os/base.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,15 +364,15 @@ static void swAio_handler_read_file(swAio_event *event)
364364
int fd = open(event->req, O_RDONLY);
365365
if (fd < 0)
366366
{
367-
swSysError("open(%s, O_RDONLY) failed.", event->req);
367+
swSysError("open(%s, O_RDONLY) failed.", (char * )event->req);
368368
event->ret = ret;
369369
event->error = errno;
370370
return;
371371
}
372372
struct stat file_stat;
373373
if (fstat(fd, &file_stat) < 0)
374374
{
375-
swSysError("fstat(%s) failed.", event->req);
375+
swSysError("fstat(%s) failed.", (char * )event->req);
376376
_error: close(fd);
377377
event->ret = ret;
378378
event->error = errno;
@@ -418,7 +418,7 @@ static void swAio_handler_write_file(swAio_event *event)
418418
int fd = open(event->req, event->flags, 0644);
419419
if (fd < 0)
420420
{
421-
swSysError("open(%s, %d) failed.", event->req, event->flags);
421+
swSysError("open(%s, %d) failed.", (char * )event->req, event->flags);
422422
event->ret = ret;
423423
event->error = errno;
424424
return;

0 commit comments

Comments
 (0)