[darwinbuild-changes] [867] trunk

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 2 09:27:22 PDT 2010


Revision: 867
          http://trac.macosforge.org/projects/darwinbuild/changeset/867
Author:   wsiegrist at apple.com
Date:     2010-09-02 09:27:22 -0700 (Thu, 02 Sep 2010)
Log Message:
-----------
build fix for format string warning

Modified Paths:
--------------
    trunk/CHANGES
    trunk/darwinup/main.cpp
    trunk/darwinxref/plugins/loadDeps.c

Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES	2010-08-18 21:14:48 UTC (rev 866)
+++ trunk/CHANGES	2010-09-02 16:27:22 UTC (rev 867)
@@ -1,6 +1,9 @@
 Darwin Build Scripts Change History
 -----------------------------------
 
+Release 20.1 [02-Sep-2010]
+	- darwinxref: build fix for format string warning
+
 Release 20 [10-Aug-2010]
 	- all: use CommonCrypto instead of OpenSSL
 	- all: remove obsolete Makefiles

Modified: trunk/darwinup/main.cpp
===================================================================
--- trunk/darwinup/main.cpp	2010-08-18 21:14:48 UTC (rev 866)
+++ trunk/darwinup/main.cpp	2010-09-02 16:27:22 UTC (rev 867)
@@ -47,7 +47,7 @@
 
 void usage(char* progname) {
 	fprintf(stderr, "usage:    %s [-v] [-p DIR] [command] [args]          \n", progname);
-	fprintf(stderr, "version: 20                                                    \n");
+	fprintf(stderr, "version: 20.1                                                  \n");
 	fprintf(stderr, "                                                               \n");
 	fprintf(stderr, "options:                                                       \n");
 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1060

Modified: trunk/darwinxref/plugins/loadDeps.c
===================================================================
--- trunk/darwinxref/plugins/loadDeps.c	2010-08-18 21:14:48 UTC (rev 866)
+++ trunk/darwinxref/plugins/loadDeps.c	2010-09-02 16:27:22 UTC (rev 867)
@@ -97,7 +97,7 @@
 			struct stat sb;
 			int typesize = (intptr_t)tab - (intptr_t)line;
 			asprintf(&type, "%.*s", typesize, line);
-			asprintf(&file, "%.*s", size - typesize - 1, tab+1);
+			asprintf(&file, "%.*s", (int)size - typesize - 1, tab+1);
 			if (strcmp(type, "open") == 0) {
 				free(type);
 				if (has_suffix(file, ".h")) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20100902/1abb6c82/attachment.html>


More information about the darwinbuild-changes mailing list