From fdc4d3cdb986ac3c4d7f31e881b644f86901f033 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 6 Jun 2000 14:15:49 +0000 Subject: [PATCH] (P_): Use PROTOTYPES. (safe_strdup): Declare arg const. (lw_modify_all_widgets) : Return 0. --- lwlib/lwlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c index 328fdf88c5f..82de7be3daf 100644 --- a/lwlib/lwlib.c +++ b/lwlib/lwlib.c @@ -75,7 +75,7 @@ char *lwlib_toolkit_type = "motif"; char *lwlib_toolkit_type = "lucid"; #endif -#if defined __STDC__ +#if defined __STDC__ || defined PROTOTYPES #define P_(x) x #else #define P_(x) () @@ -142,7 +142,7 @@ lwlib_bcopy (from, to, length) /* utility functions for widget_instance and widget_info */ char * safe_strdup (s) - char *s; + const char *s; { char *result; if (! s) return 0; @@ -753,7 +753,7 @@ lw_modify_all_widgets (id, val, deep_p) int change_p = 0; if (!info) - return; + return 0; for (new_val = val; new_val; new_val = new_val->next) {