[master] d25230ac1 use the CTRL() macro

Nils Goroll nils.goroll at uplex.de
Wed Nov 13 11:53:06 UTC 2019


commit d25230ac1d746d5ec3f9e58f48c6c54d09abf005
Author: Nils Goroll <nils.goroll at uplex.de>
Date:   Wed Nov 13 12:51:28 2019 +0100

    use the CTRL() macro
    
    added by @lkarsten as suggested by @Driri in #3122

diff --git a/bin/varnishstat/varnishstat_curses.c b/bin/varnishstat/varnishstat_curses.c
index 8d3d1c5ef..0b5338225 100644
--- a/bin/varnishstat/varnishstat_curses.c
+++ b/bin/varnishstat/varnishstat_curses.c
@@ -944,13 +944,13 @@ handle_keypress(int ch)
 	case 'q':
 		keep_running = 0;
 		return;
-	case '\003':		/* Ctrl-C */
+	case CTRL('c'):
 		AZ(raise(SIGINT));
 		return;
-	case '\024':		/* Ctrl-T */
+	case CTRL('t'):
 		sample = 1;
 		return;
-	case '\032':		/* Ctrl-Z */
+	case CTRL('z'):
 		AZ(raise(SIGTSTP));
 		return;
 	default:


More information about the varnish-commit mailing list