[BACK]Return to patch-ab CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / cross / dasm / patches

File: [cvs.NetBSD.org] / pkgsrc / cross / dasm / patches / Attic / patch-ab (download)

Revision 1.2, Sun Apr 14 01:21:17 2013 UTC (7 years, 7 months ago) by dholland
Branch: MAIN
Changes since 1.1: +13 -1 lines

Fix printf format for LP64 platforms. Add patch comment to patch-aa.
PKGREVISION -> 2.

$NetBSD: patch-ab,v 1.2 2013/04/14 01:21:17 dholland Exp $

- remove nonportable use of _fmode, whatever that was
- fix printf format for LP64 platforms

--- main.c.orig	1998-03-02 11:28:34.000000000 +0000
+++ main.c
@@ -199,9 +199,7 @@ nextpass:
 #if OlafDol
     Localdollarindex = Lastlocaldollarindex = 0;
 #endif
-    _fmode = 0x8000;
     FI_temp = fopen(F_outfile, "w");
-    _fmode = 0;
     Fisclear = 1;
     CheckSum = 0;
     if (FI_temp == NULL) {
@@ -568,7 +566,7 @@ cleanup(char *buf)
 	    if (strlist) {
 		add += strlen(strlist->buf);
 		if (Xdebug)
-		    printf("strlist: '%s' %d\n", strlist->buf, strlen(strlist->buf));
+		    printf("strlist: '%s' %zu\n", strlist->buf, strlen(strlist->buf));
 		if (str + add + strlen(str) + 1 > buf + MAXLINE) {
 		    if (Xdebug)
 			printf("str %8ld buf %8ld (add/strlen(str)): %d %ld\n", (unsigned long)str, (unsigned long)buf, add, (long)strlen(str));