[112509] trunk/base/src/pextlib1.0/tracelib.c
toby at macports.org
toby at macports.org
Thu Oct 24 13:58:50 PDT 2013
Revision: 112509
https://trac.macports.org/changeset/112509
Author: toby at macports.org
Date: 2013-10-24 13:58:50 -0700 (Thu, 24 Oct 2013)
Log Message:
-----------
format fixes
Modified Paths:
--------------
trunk/base/src/pextlib1.0/tracelib.c
Modified: trunk/base/src/pextlib1.0/tracelib.c
===================================================================
--- trunk/base/src/pextlib1.0/tracelib.c 2013-10-24 20:11:10 UTC (rev 112508)
+++ trunk/base/src/pextlib1.0/tracelib.c 2013-10-24 20:58:50 UTC (rev 112509)
@@ -99,11 +99,11 @@
static void send_file_map(int sock);
static void dep_check(int sock, char *path);
static void sandbox_violation(int sock, const char *path);
-static void ui_warn(const char *format, ...);
+static void ui_warn(const char *format, ...) __printflike(1, 2);
#if 0
-static void ui_info(const char *format, ...);
+static void ui_info(const char *format, ...) __printflike(1, 2);
#endif
-static void ui_error(const char *format, ...);
+static void ui_error(const char *format, ...) __printflike(1, 2);
#define MAX_SOCKETS (1024)
#define BUFSIZE (1024)
@@ -406,7 +406,7 @@
reg_error error;
if (NULL == (reg = registry_for(interp, reg_attached))) {
- ui_error(Tcl_GetStringResult(interp));
+ ui_error("%s", Tcl_GetStringResult(interp));
/* send unexpected output to make the build fail */
answer(sock, "#");
}
@@ -424,7 +424,7 @@
/* find the port's name to compare with out list */
if (!reg_entry_propget(&entry, "name", &port, &error)) {
/* send unexpected output to make the build fail */
- ui_error(error.description);
+ ui_error("%s", error.description);
answer(sock, "#");
}
@@ -441,6 +441,7 @@
answer(sock, "!");
}
+__printflike(2, 0)
static void ui_msg(const char *severity, const char *format, va_list va) {
char buf[1024], tclcmd[32];
@@ -456,6 +457,7 @@
}
+__printflike(1, 2)
static void ui_warn(const char *format, ...) {
va_list va;
@@ -465,6 +467,7 @@
}
#if 0
+__printflike(1, 2)
static void ui_info(const char *format, ...) {
va_list va;
@@ -474,6 +477,7 @@
}
#endif
+__printflike(1, 2)
static void ui_error(const char *format, ...) {
va_list va;
va_start(va, format);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131024/79f3da46/attachment.html>
More information about the macports-changes
mailing list