Rename dprintf function to debugprintf so as to not conflict with POSIX
function name. ok millert@
This commit is contained in:
parent
c7c3d2e810
commit
491025efd7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user