From: uz Date: Mon, 9 Aug 2010 05:47:22 +0000 (+0000) Subject: Fixed a C99ism. X-Git-Tag: V2.13.3~652 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b936617eb467e67fb919889626ccd52101e9f0ef;p=cc65 Fixed a C99ism. git-svn-id: svn://svn.cc65.org/cc65/trunk@4799 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/ld65/segments.c b/src/ld65/segments.c index 25959ff56..f9154e194 100644 --- a/src/ld65/segments.c +++ b/src/ld65/segments.c @@ -487,16 +487,18 @@ void SegWrite (const char* TgtName, FILE* Tgt, Segment* S, SegWriteFunc F, void* /* Write the data from the given segment to a file. For expressions, F is * called (see description of SegWriteFunc above). */ -{ - int Sign; +{ + Section* Sec; + int Sign; unsigned long Offs = 0; + /* Remember the output file and offset for the segment */ S->OutputName = TgtName; S->OutputOffs = (unsigned long) ftell (Tgt); /* Loop over all sections in this segment */ - Section* Sec = S->SecRoot; + Sec = S->SecRoot; while (Sec) { Fragment* Frag;