From 491025efd7d2a3823a656ca4734603941e15f9ab Mon Sep 17 00:00:00 2001 From: brad Date: Fri, 25 Jan 2013 22:33:54 +0000 Subject: [PATCH] Rename dprintf function to debugprintf so as to not conflict with POSIX function name. ok millert@ --- app/xsystrace/callbacks.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/xsystrace/callbacks.c b/app/xsystrace/callbacks.c index d90a1a874..a27bc86bb 100644 --- a/app/xsystrace/callbacks.c +++ b/app/xsystrace/callbacks.c @@ -1,4 +1,4 @@ -/* $OpenBSD: callbacks.c,v 1.1.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); }