@@ -364,7 +364,7 @@ int main(int argc, char *argv[])
364
364
}
365
365
366
366
if (argv [i ] && ((strcmp (argv [i ], "-help" ) == 0 ) || (strcmp (argv [i ], "-HELP" ) == 0 ))) {
367
- fprintf (stderr , "%s%s" , helpstring , nethubHelpstring );
367
+ ( void ) fprintf (stderr , "%s%s" , helpstring , nethubHelpstring );
368
368
exit (0 );
369
369
}
370
370
@@ -387,7 +387,7 @@ int main(int argc, char *argv[])
387
387
}
388
388
if (access (sysout_name , R_OK )) {
389
389
perror ("Couldn't find a sysout to run" );
390
- fprintf (stderr , "%s%s" , helpstring , nethubHelpstring );
390
+ ( void ) fprintf (stderr , "%s%s" , helpstring , nethubHelpstring );
391
391
exit (1 );
392
392
}
393
393
/* OK, sysout name is now in sysout_name, and i is moved past a supplied name */
@@ -403,11 +403,11 @@ int main(int argc, char *argv[])
403
403
if (errno == 0 && tmpint > 0 ) {
404
404
TIMER_INTERVAL = tmpint ;
405
405
} else {
406
- fprintf (stderr , "Bad value for -t (integer > 0)\n" );
406
+ ( void ) fprintf (stderr , "Bad value for -t (integer > 0)\n" );
407
407
exit (1 );
408
408
}
409
409
} else {
410
- fprintf (stderr , "Missing argument after -t\n" );
410
+ ( void ) fprintf (stderr , "Missing argument after -t\n" );
411
411
exit (1 );
412
412
}
413
413
}
@@ -419,11 +419,11 @@ int main(int argc, char *argv[])
419
419
if (errno == 0 && tmpint > 0 ) {
420
420
sysout_size = (unsigned )tmpint ;
421
421
} else {
422
- fprintf (stderr , "Bad value for -m (integer > 0)\n" );
422
+ ( void ) fprintf (stderr , "Bad value for -m (integer > 0)\n" );
423
423
exit (1 );
424
424
}
425
425
} else {
426
- fprintf (stderr , "Missing argument after -m\n" );
426
+ ( void ) fprintf (stderr , "Missing argument after -m\n" );
427
427
exit (1 );
428
428
}
429
429
}
@@ -462,30 +462,30 @@ int main(int argc, char *argv[])
462
462
if (argc > ++ i ) {
463
463
int read = sscanf (argv [i ], "%dx%d" , & width , & height );
464
464
if (read != 2 ) {
465
- fprintf (stderr , "Could not parse -sc argument %s\n" , argv [i ]);
465
+ ( void ) fprintf (stderr , "Could not parse -sc argument %s\n" , argv [i ]);
466
466
exit (1 );
467
467
}
468
468
} else {
469
- fprintf (stderr , "Missing argument after -sc\n" );
469
+ ( void ) fprintf (stderr , "Missing argument after -sc\n" );
470
470
exit (1 );
471
471
}
472
472
} else if ((strcmp (argv [i ], "-pixelscale" ) == 0 ) || (strcmp (argv [i ], "-PIXELSCALE" ) == 0 )) {
473
473
if (argc > ++ i ) {
474
474
int read = sscanf (argv [i ], "%d" , & pixelscale );
475
475
if (read != 1 ) {
476
- fprintf (stderr , "Could not parse -pixelscale argument %s\n" , argv [i ]);
476
+ ( void ) fprintf (stderr , "Could not parse -pixelscale argument %s\n" , argv [i ]);
477
477
exit (1 );
478
478
}
479
479
} else {
480
- fprintf (stderr , "Missing argument after -pixelscale\n" );
480
+ ( void ) fprintf (stderr , "Missing argument after -pixelscale\n" );
481
481
exit (1 );
482
482
}
483
483
} else if ((strcmp (argv [i ], "-t" ) == 0 ) || (strcmp (argv [i ], "-T" ) == 0 )
484
484
|| (strcmp (argv [i ], "-title" ) == 0 ) || (strcmp (argv [i ], "-TITLE" ) == 0 )) {
485
485
if (argc > ++ i ) {
486
486
windowtitle = argv [i ];
487
487
} else {
488
- fprintf (stderr , "Missing argument after -title\n" );
488
+ ( void ) fprintf (stderr , "Missing argument after -title\n" );
489
489
exit (1 );
490
490
}
491
491
}
@@ -511,7 +511,7 @@ int main(int argc, char *argv[])
511
511
ether_host [4 ] = b4 ;
512
512
ether_host [5 ] = b5 ;
513
513
} else {
514
- fprintf (stderr , "Missing or bogus -E argument\n" );
514
+ ( void ) fprintf (stderr , "Missing or bogus -E argument\n" );
515
515
ether_fd = -1 ;
516
516
exit (1 );
517
517
}
@@ -524,7 +524,7 @@ int main(int argc, char *argv[])
524
524
if (argc > ++ i ) {
525
525
setNethubHost (argv [i ]);
526
526
} else {
527
- fprintf (stderr , "Missing argument after -nh-host\n" );
527
+ ( void ) fprintf (stderr , "Missing argument after -nh-host\n" );
528
528
exit (1 );
529
529
}
530
530
}
@@ -535,11 +535,11 @@ int main(int argc, char *argv[])
535
535
if (errno == 0 && tmpint > 0 ) {
536
536
setNethubPort (tmpint );
537
537
} else {
538
- fprintf (stderr , "Bad value for -nh-port\n" );
538
+ ( void ) fprintf (stderr , "Bad value for -nh-port\n" );
539
539
exit (1 );
540
540
}
541
541
} else {
542
- fprintf (stderr , "Missing argument after -nh-port\n" );
542
+ ( void ) fprintf (stderr , "Missing argument after -nh-port\n" );
543
543
exit (1 );
544
544
}
545
545
}
@@ -549,11 +549,11 @@ int main(int argc, char *argv[])
549
549
if (sscanf (argv [i ], "%x-%x-%x-%x-%x-%x" , & b0 , & b1 , & b2 , & b3 , & b4 , & b5 ) == 6 ) {
550
550
setNethubMac (b0 , b1 , b2 , b3 , b4 , b5 );
551
551
} else {
552
- fprintf (stderr , "Invalid argument for -nh-mac\n" );
552
+ ( void ) fprintf (stderr , "Invalid argument for -nh-mac\n" );
553
553
exit (1 );
554
554
}
555
555
} else {
556
- fprintf (stderr , "Missing argument after -nh-mac\n" );
556
+ ( void ) fprintf (stderr , "Missing argument after -nh-mac\n" );
557
557
exit (1 );
558
558
}
559
559
}
@@ -564,11 +564,11 @@ int main(int argc, char *argv[])
564
564
if (errno == 0 && tmpint >= 0 ) {
565
565
setNethubLogLevel (tmpint );
566
566
} else {
567
- fprintf (stderr , "Bad value for -nh-loglevel\n" );
567
+ ( void ) fprintf (stderr , "Bad value for -nh-loglevel\n" );
568
568
exit (1 );
569
569
}
570
570
} else {
571
- fprintf (stderr , "Missing argument after -nh-loglevel\n" );
571
+ ( void ) fprintf (stderr , "Missing argument after -nh-loglevel\n" );
572
572
exit (1 );
573
573
}
574
574
}
@@ -582,11 +582,11 @@ int main(int argc, char *argv[])
582
582
if (errno == 0 && tmpint > 1000 ) {
583
583
insnsCountdownForTimerAsyncEmulation = tmpint ;
584
584
} else {
585
- fprintf (stderr , "Bad value for -intr-emu-insns (integer > 1000)\n" );
585
+ ( void ) fprintf (stderr , "Bad value for -intr-emu-insns (integer > 1000)\n" );
586
586
exit (1 );
587
587
}
588
588
} else {
589
- fprintf (stderr , "Missing argument after -intr-emu-insns\n" );
589
+ ( void ) fprintf (stderr , "Missing argument after -intr-emu-insns\n" );
590
590
exit (1 );
591
591
}
592
592
}
@@ -600,11 +600,11 @@ int main(int argc, char *argv[])
600
600
if (errno == 0 && tmpint > 0 ) {
601
601
maxpages = (unsigned )tmpint ;
602
602
} else {
603
- fprintf (stderr , "Bad value for -xpages (integer > 0)\n" );
603
+ ( void ) fprintf (stderr , "Bad value for -xpages (integer > 0)\n" );
604
604
exit (1 );
605
605
}
606
606
} else {
607
- fprintf (stderr , "Missing argument after -xpages\n" );
607
+ ( void ) fprintf (stderr , "Missing argument after -xpages\n" );
608
608
exit (1 );
609
609
}
610
610
}
@@ -615,9 +615,9 @@ int main(int argc, char *argv[])
615
615
probemouse (); /* See if the mouse is connected. */
616
616
#else
617
617
if (getuid () != geteuid ()) {
618
- fprintf (stderr , "Effective user is not real user. Resetting uid\n" );
618
+ ( void ) fprintf (stderr , "Effective user is not real user. Resetting uid\n" );
619
619
if (setuid (getuid ()) == -1 ) {
620
- fprintf (stderr , "Unable to reset user id to real user id\n" );
620
+ ( void ) fprintf (stderr , "Unable to reset user id to real user id\n" );
621
621
exit (1 );
622
622
}
623
623
}
@@ -641,7 +641,7 @@ int main(int argc, char *argv[])
641
641
642
642
if (FindUnixPipes ()) /* must call the routine to allocate storage, */
643
643
{ /* in case we're re-starting a savevm w/open ptys */
644
- if (please_fork ) fprintf (stderr , "Failed to find UNIXCOMM file handles; no processes\n" );
644
+ if (please_fork ) ( void ) fprintf (stderr , "Failed to find UNIXCOMM file handles; no processes\n" );
645
645
}
646
646
#endif /* DOS */
647
647
@@ -665,7 +665,7 @@ int main(int argc, char *argv[])
665
665
666
666
/* file system directory enumeration stuff */
667
667
if (!init_finfo ()) {
668
- fprintf (stderr , "Cannot allocate internal data.\n" );
668
+ ( void ) fprintf (stderr , "Cannot allocate internal data.\n" );
669
669
exit (1 );
670
670
}
671
671
#ifdef RS232
0 commit comments