mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-14 13:19:23 +00:00
Rename dprintf function to debugprintf so as to not conflict with POSIX
function name. ok millert@
This commit is contained in:
@@ -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
|
* Copyright (c) 2002 Matthieu Herrb and Niels Provos
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
@@ -76,7 +76,7 @@ static void make_wizard(Widget);
|
|||||||
XtInputId inputId;
|
XtInputId inputId;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dprintf(char *format, ...)
|
debugprintf(char *format, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ freadline(char *line, size_t size, int fd)
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if ((n = read(fd, p, 1)) <= 0) {
|
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);
|
XtRemoveInput(inputId);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@@ -111,7 +111,7 @@ freadline(char *line, size_t size, int fd)
|
|||||||
|
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
||||||
dprintf("state %d got line: %s\n", state, line);
|
debugprintf("state %d got line: %s\n", state, line);
|
||||||
return (line);
|
return (line);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,7 +256,7 @@ on_filter_select(Widget w, XtPointer userData, XtPointer clientData)
|
|||||||
XawTextBlock block;
|
XawTextBlock block;
|
||||||
|
|
||||||
filter = (char *)userData;
|
filter = (char *)userData;
|
||||||
dprintf("filter: %s\n", filter);
|
debugprintf("filter: %s\n", filter);
|
||||||
block.ptr = filter;
|
block.ptr = filter;
|
||||||
block.firstPos = 0;
|
block.firstPos = 0;
|
||||||
block.length = strlen(filter);
|
block.length = strlen(filter);
|
||||||
@@ -285,7 +285,7 @@ on_error_entry_changed(Widget w, XEvent *event, String *params,
|
|||||||
|
|
||||||
XtSetArg(args[0], XtNstring, &errorcode);
|
XtSetArg(args[0], XtNstring, &errorcode);
|
||||||
XtGetValues(w, args, 1);
|
XtGetValues(w, args, 1);
|
||||||
dprintf("new error code %s\n", errorcode);
|
debugprintf("new error code %s\n", errorcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@@ -296,7 +296,7 @@ on_denyone_clicked(Widget w, XtPointer closure, XtPointer clientData)
|
|||||||
XtSetArg(args[0], XtNstring, &errorcode);
|
XtSetArg(args[0], XtNstring, &errorcode);
|
||||||
XtGetValues(w, args, 1);
|
XtGetValues(w, args, 1);
|
||||||
|
|
||||||
dprintf("deny-now[%s]\n", errorcode);
|
debugprintf("deny-now[%s]\n", errorcode);
|
||||||
printf("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);
|
XtSetArg(args[0], XtNstring, &errorcode);
|
||||||
XtGetValues(w, args, 1);
|
XtGetValues(w, args, 1);
|
||||||
|
|
||||||
dprintf("deny[%s]\n", errorcode);
|
debugprintf("deny[%s]\n", errorcode);
|
||||||
printf("deny[%s]\n", errorcode);
|
printf("deny[%s]\n", errorcode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user