]> Shamusworld >> Repos - rmac/blobdiff - object.c
Fix a few minor problems with 030 mode PC relative fixups.
[rmac] / object.c
index 29fd8f3ce0d672e42757eed92131ccfd47b6461d..24c285ca77b2850cf1eaa192ae81a77818567079 100644 (file)
--- a/object.c
+++ b/object.c
@@ -321,7 +321,7 @@ int WriteObject(int fd)
        uint8_t * buf;                  // Scratch area
        uint8_t * p;                    // Temporary ptr
        LONG trsize, drsize;    // Size of relocations
-       long unused;                    // For supressing 'write' warnings
+       uint32_t unused;                // For supressing 'write' warnings
 
        if (verb_flag)
        {
@@ -810,7 +810,7 @@ for(int j=0; j<i; j++)
                        WriteP56();
 
                // Write all the things |o/
-               ssize_t unused = write(fd, buf, chptr - buf);
+               unused = write(fd, buf, chptr - buf);
 
                if (buf)
                        free(buf);