From 70e79463fef28e915926738233913129e80a434b Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 14 Nov 2021 04:44:08 +0000 Subject: added proper default breaks to the end of switches --- urimatchpairs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urimatchpairs.c b/urimatchpairs.c index 6da5d92..1e8b823 100644 --- a/urimatchpairs.c +++ b/urimatchpairs.c @@ -7,7 +7,7 @@ int main(int argc,char *argv[]) { case '-': j=1; break; case 'n': j=1; printf("%s\n",argv[i]); i--; continue; case 'r': j=1; printf("r"); break; - default: + default: break; } switch(argv[i][j]) { case 's': @@ -18,6 +18,7 @@ int main(int argc,char *argv[]) { case 'p': case 'q': case 'f': printf("%c %s\n",argv[i][j],argv[i+1]); + default: break; } } } -- cgit v1.2.3