summary refs log tree commit diff
diff options
context:
space:
mode:
authorDetlef Riekenberg <wine.dev@web.de>2022-01-28 22:42:25 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2022-01-31 08:55:27 +0100
commita32ecfb452d4d1f4ae64d5d7e9284dda1e6a20df (patch)
tree39825fc8cc2880d984cc2cfb2c748a0767d9dc08
parentf913cb0fb7f642d2c2636b3b7b9a47aafee71ef7 (diff)
downloadroux-a32ecfb452d4d1f4ae64d5d7e9284dda1e6a20df.tar.gz
Do not use the asm keyword as a local variable
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index a52551e..83f08ba 100644
--- a/main.c
+++ b/main.c
@@ -111,9 +111,9 @@ main(int ac, char *av[])
 	struct TMap *tm;
 	FILE *inf, *hf;
 	char *f, *sep;
-	int c, asm;
+	int c, asmmode;
 
-	asm = Defasm;
+	asmmode = Defasm;
 	T = Deftgt;
 	outf = stdout;
 	while ((c = getopt(ac, av, "hd:o:G:t:")) != -1)
@@ -148,9 +148,9 @@ main(int ac, char *av[])
 			break;
 		case 'G':
 			if (strcmp(optarg, "e") == 0)
-				asm = Gaself;
+				asmmode = Gaself;
 			else if (strcmp(optarg, "m") == 0)
-				asm = Gasmacho;
+				asmmode = Gasmacho;
 			else {
 				fprintf(stderr, "unknown gas flavor '%s'\n", optarg);
 				exit(1);
@@ -172,7 +172,7 @@ main(int ac, char *av[])
 			exit(c != 'h');
 		}
 
-	switch (asm) {
+	switch (asmmode) {
 	case Gaself:
 		gasloc = ".L";
 		gassym = "";
@@ -200,7 +200,7 @@ main(int ac, char *av[])
 
 	if (!dbg) {
 		gasemitfin(outf);
-		if (asm == Gaself)
+		if (asmmode == Gaself)
 			fprintf(outf, ".section .note.GNU-stack,\"\",@progbits\n");
 	}