commit b571e30d2d46a63f090106babe63f26a54e90f47
parent dd2f6fc2d15bf3fa0dc8d22651060c96c89a2d77
Author: Kyle Milz <krwmilz@gmail.com>
Date: Sat, 11 Mar 2023 08:21:39 +0000
ansi function signatures
Diffstat:
M | xdvi.c | | | 20 | ++++++-------------- |
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/xdvi.c b/xdvi.c
@@ -223,9 +223,7 @@ static XtResource app_pixel_resources[] = { /* get these later */
static XtGeometryResult
-QueryGeometry(w, constraints, reply)
- Widget w;
- XtWidgetGeometry *constraints, *reply;
+QueryGeometry(Widget w, XtWidgetGeometry *constraints, XtWidgetGeometry *reply)
{
reply->request_mode = CWWidth | CWHeight;
reply->width = page_w;
@@ -234,7 +232,6 @@ QueryGeometry(w, constraints, reply)
}
static WidgetClassRec drawingWidgetClass = {
- {
/* superclass */ &widgetClassRec,
/* class_name */ "Draw",
/* widget_size */ sizeof(WidgetRec),
@@ -267,7 +264,6 @@ static WidgetClassRec drawingWidgetClass = {
/* query_geometry */ QueryGeometry,
/* display_accelerator */ XtInheritDisplayAccelerator,
/* extension */ NULL
- }
};
static void
@@ -337,9 +333,7 @@ static struct modifierinf modifiers[] = {
static Bool
-compile_modifiers(pp, wactp)
- const char **pp;
- struct wheel_acts *wactp;
+compile_modifiers(const char **pp, struct wheel_acts *wactp)
{
const char *p = *pp;
const char *p1;
@@ -465,9 +459,7 @@ compile_modifiers(pp, wactp)
}
static Bool
-compile_evtype(pp, buttonp)
- const char **pp;
- unsigned int *buttonp;
+compile_evtype(const char **pp, unsigned int *buttonp)
{
const char *p = *pp;
const char *p0;
@@ -515,7 +507,7 @@ compile_evtype(pp, buttonp)
}
static void
-compile_wheel_actions()
+compile_wheel_actions(void)
{
struct wheel_acts **wactpp;
struct wheel_acts *wactp;
@@ -554,7 +546,7 @@ compile_wheel_actions()
}
static void
-set_default_winsize()
+set_default_winsize(void)
{
Dimension addr_bwidth;
Dimension bwidth;
@@ -635,7 +627,7 @@ set_default_winsize()
*/
int
-main(int argc, char **argv)
+main(int argc, char *argv[])
{
const char *url = NULL;
const char *arg;