We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4236c78 commit e8ee600Copy full SHA for e8ee600
utils/midiplay/adlmidiplay.cpp
@@ -249,13 +249,18 @@ static int stop = 0;
249
#ifndef HARDWARE_OPL3
250
static void sighandler(int dum)
251
{
252
- if((dum == SIGINT)
253
- || (dum == SIGTERM)
254
- #if !defined(_WIN32) && !defined(__WATCOMC__)
255
- || (dum == SIGHUP)
256
- #endif
257
- )
+ switch(dum)
+ {
+ case SIGINT:
+ case SIGTERM:
+#ifndef _WIN32
+ case SIGHUP:
258
+#endif
259
stop = 1;
260
+ break;
261
+ default:
262
263
+ }
264
}
265
#endif
266
0 commit comments