Fix a few checkpatch issues

This commit is contained in:
Antonio Niño Díaz
2019-05-31 12:34:14 +01:00
parent d2bd9a2368
commit cc458a9693
3 changed files with 18 additions and 19 deletions

View File

@@ -497,7 +497,6 @@ void sym_AddEqu(char *tzSym, int32_t value)
nsym->pScope = NULL; nsym->pScope = NULL;
updateSymbolFilename(nsym); updateSymbolFilename(nsym);
} }
} }
/* /*

View File

@@ -199,8 +199,8 @@ static struct RawIndexedImage *indexed_png_to_raw(struct PNGImage *img)
raw_image = create_raw_image(img->width, img->height, colors); raw_image = create_raw_image(img->width, img->height, colors);
/* /*
* Transparent palette entries are removed, and the palette is collapsed. * Transparent palette entries are removed, and the palette is
* Transparent pixels are then replaced with palette index 0. * collapsed. Transparent pixels are then replaced with palette index 0.
* This way, an indexed PNG can contain transparent pixels in *addition* * This way, an indexed PNG can contain transparent pixels in *addition*
* to 4 normal colors. * to 4 normal colors.
*/ */

View File

@@ -695,24 +695,24 @@ void CreateSymbolTable(void)
if ((tSymbol->Type == SYM_EXPORT) && if ((tSymbol->Type == SYM_EXPORT) &&
((tSymbol->pSection == pSect) || ((tSymbol->pSection == pSect) ||
(tSymbol->pSection == NULL))) { (tSymbol->pSection == NULL))) {
if (tSymbol->pSection == NULL) if (tSymbol->pSection == NULL) {
sym_CreateSymbol( sym_CreateSymbol(tSymbol->pzName,
tSymbol->pzName,
tSymbol->nOffset, tSymbol->nOffset,
-1, -1,
tSymbol->pzObjFileName, tSymbol->pzObjFileName,
tSymbol->pzFileName, tSymbol->pzFileName,
tSymbol->nFileLine); tSymbol->nFileLine);
else } else {
sym_CreateSymbol( sym_CreateSymbol(tSymbol->pzName,
tSymbol->pzName, pSect->nOrg +
pSect->nOrg + tSymbol->nOffset, tSymbol->nOffset,
pSect->nBank, pSect->nBank,
tSymbol->pzObjFileName, tSymbol->pzObjFileName,
tSymbol->pzFileName, tSymbol->pzFileName,
tSymbol->nFileLine); tSymbol->nFileLine);
} }
} }
}
pSect = pSect->pNext; pSect = pSect->pNext;
} }
} }