summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-01-25 22:33:55 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-01-25 22:33:55 +0000
commit116fa13b17ab959bf495fcc1129315b998735ef4 (patch)
tree9828c35e93196458e29f558dac499691600eb5f1
parent6ea174f60c6bbbb058dc44a54017eda0b652377a (diff)
Rename dprintf function to debugprintf so as to not conflict with POSIX
function name. ok millert@
-rw-r--r--app/xsystrace/callbacks.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/xsystrace/callbacks.c b/app/xsystrace/callbacks.c
index 96978693e..a27bc86bb 100644
--- a/app/xsystrace/callbacks.c
+++ b/app/xsystrace/callbacks.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: callbacks.c,v 1.1 2006/11/26 10:58:43 matthieu Exp $ */
+/* $OpenBSD: callbacks.c,v 1.2 2013/01/25 22:33:54 brad Exp $ */
/*
* Copyright (c) 2002 Matthieu Herrb and Niels Provos
* All rights reserved.
@@ -76,7 +76,7 @@ static void make_wizard(Widget);
XtInputId inputId;
static void
-dprintf(char *format, ...)
+debugprintf(char *format, ...)
{
va_list ap;
@@ -98,7 +98,7 @@ freadline(char *line, size_t size, int fd)
return NULL;
if ((n = read(fd, p, 1)) <= 0) {
- dprintf("got null line n=%ld state %d\n", n, state);
+ debugprintf("got null line n=%ld state %d\n", n, state);
XtRemoveInput(inputId);
return NULL;
}
@@ -111,7 +111,7 @@ freadline(char *line, size_t size, int fd)
*p = '\0';
- dprintf("state %d got line: %s\n", state, line);
+ debugprintf("state %d got line: %s\n", state, line);
return (line);
}
@@ -256,7 +256,7 @@ on_filter_select(Widget w, XtPointer userData, XtPointer clientData)
XawTextBlock block;
filter = (char *)userData;
- dprintf("filter: %s\n", filter);
+ debugprintf("filter: %s\n", filter);
block.ptr = filter;
block.firstPos = 0;
block.length = strlen(filter);
@@ -285,7 +285,7 @@ on_error_entry_changed(Widget w, XEvent *event, String *params,
XtSetArg(args[0], XtNstring, &errorcode);
XtGetValues(w, args, 1);
- dprintf("new error code %s\n", errorcode);
+ debugprintf("new error code %s\n", errorcode);
}
void
@@ -296,7 +296,7 @@ on_denyone_clicked(Widget w, XtPointer closure, XtPointer clientData)
XtSetArg(args[0], XtNstring, &errorcode);
XtGetValues(w, args, 1);
- dprintf("deny-now[%s]\n", errorcode);
+ debugprintf("deny-now[%s]\n", errorcode);
printf("deny-now[%s]\n", errorcode);
}
@@ -314,7 +314,7 @@ on_deny_clicked(Widget w, XtPointer closure, XtPointer clientData)
XtSetArg(args[0], XtNstring, &errorcode);
XtGetValues(w, args, 1);
- dprintf("deny[%s]\n", errorcode);
+ debugprintf("deny[%s]\n", errorcode);
printf("deny[%s]\n", errorcode);
}