From 3f2843117757879b8802bc45730c8d2f8e88cf5f Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 19 Jan 1999 04:44:19 +0000 Subject: [PATCH] Added "breaks" to defaults. --- lib/dns/gen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/dns/gen.c b/lib/dns/gen.c index 45ed0c3218..b9703818e8 100644 --- a/lib/dns/gen.c +++ b/lib/dns/gen.c @@ -139,7 +139,7 @@ doswitch(char *name, char *function, char *args, first = 0; } if (tt->type != lasttype && subswitch) { - fprintf(stdout, "\t\tdefault: result = %s; \\\n", + fprintf(stdout, "\t\tdefault: result = %s; break; \\\n", res); fputs(/*{*/ "\t\t} \\\n", stdout); fputs("\t\tbreak; \\\n", stdout); @@ -163,14 +163,14 @@ doswitch(char *name, char *function, char *args, lasttype = tt->type; } if (subswitch) { - fprintf(stdout, "\t\tdefault: result = %s; \\\n", res); + fprintf(stdout, "\t\tdefault: result = %s; break; \\\n", res); fputs(/*{*/ "\t\t}\n", stdout); fputs("\t\tbreak; \\\n", stdout); } if (first) fprintf(stdout, "\n#define %s result = %s;\n", name, res); else { - fprintf(stdout, "\tdefault: result = %s; \\\n", res); + fprintf(stdout, "\tdefault: result = %s; break; \\\n", res); fputs(/*{*/ "\t}\n", stdout); } }