From f5fb7234954418f3ea6f70845c7aad78e03cfc8a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 3 Jan 2009 17:56:41 -0800 Subject: [PATCH] outas86: slight stylistic cleanups Minor stylistic cleanups to previous patch. --- output/outas86.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/output/outas86.c b/output/outas86.c index c6cb5c47..914dcea4 100644 --- a/output/outas86.c +++ b/output/outas86.c @@ -179,7 +179,7 @@ static int as86_add_string(char *name) static void as86_deflabel(char *name, int32_t segment, int64_t offset, int is_global, char *special) { - int is_start = 0; + bool is_start = false; struct Symbol *sym; if (special) @@ -188,12 +188,12 @@ static void as86_deflabel(char *name, int32_t segment, int64_t offset, if (name[0] == '.' && name[1] == '.' && name[2] != '@') { - if(strcmp(name, "..start")) { - error(ERR_NONFATAL, "custom unrecognised special symbol `%s'", name); - return; - } else { - is_start = 1; - } + if (strcmp(name, "..start")) { + error(ERR_NONFATAL, "unrecognised special symbol `%s'", name); + return; + } else { + is_start = true; + } } sym = saa_wstruct(syms); @@ -201,7 +201,7 @@ static void as86_deflabel(char *name, int32_t segment, int64_t offset, sym->strpos = as86_add_string(name); sym->flags = 0; - if(is_start) + if (is_start) sym->flags = SYM_ENTRY; if (segment == NO_SEG) -- 2.11.4.GIT