File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -364,15 +364,15 @@ static void swAio_handler_read_file(swAio_event *event)
364
364
int fd = open (event -> req , O_RDONLY );
365
365
if (fd < 0 )
366
366
{
367
- swSysError ("open(%s, O_RDONLY) failed." , event -> req );
367
+ swSysError ("open(%s, O_RDONLY) failed." , ( char * ) event -> req );
368
368
event -> ret = ret ;
369
369
event -> error = errno ;
370
370
return ;
371
371
}
372
372
struct stat file_stat ;
373
373
if (fstat (fd , & file_stat ) < 0 )
374
374
{
375
- swSysError ("fstat(%s) failed." , event -> req );
375
+ swSysError ("fstat(%s) failed." , ( char * ) event -> req );
376
376
_error : close (fd );
377
377
event -> ret = ret ;
378
378
event -> error = errno ;
@@ -418,7 +418,7 @@ static void swAio_handler_write_file(swAio_event *event)
418
418
int fd = open (event -> req , event -> flags , 0644 );
419
419
if (fd < 0 )
420
420
{
421
- swSysError ("open(%s, %d) failed." , event -> req , event -> flags );
421
+ swSysError ("open(%s, %d) failed." , ( char * ) event -> req , event -> flags );
422
422
event -> ret = ret ;
423
423
event -> error = errno ;
424
424
return ;
You can’t perform that action at this time.
0 commit comments