diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-01-03 17:56:41 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-01-03 17:56:41 -0800 |
commit | f5fb7234954418f3ea6f70845c7aad78e03cfc8a (patch) | |
tree | 4ae1e0ec077248784cbfb5269af285a4ce984647 | |
parent | e07949dc3f6b10a1f06c33feb50bdaf1e67d4bac (diff) | |
download | nasm-f5fb7234954418f3ea6f70845c7aad78e03cfc8a.tar.gz |
outas86: slight stylistic cleanups
Minor stylistic cleanups to previous patch.
-rw-r--r-- | output/outas86.c | 16 |
1 files 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) |