# HG changeset patch # User Dave Love # Date 960300949 0 # Node ID 2d728b3d9f5f4a9193e651c3227f64e5e7d2f3f0 # Parent 03450acee9d866ca663ea48d5f371c632f0678e3 (P_): Use PROTOTYPES. (safe_strdup): Declare arg const. (lw_modify_all_widgets) : Return 0. diff -r 03450acee9d8 -r 2d728b3d9f5f lwlib/lwlib.c --- a/lwlib/lwlib.c Tue Jun 06 14:13:17 2000 +0000 +++ b/lwlib/lwlib.c Tue Jun 06 14:15:49 2000 +0000 @@ -75,7 +75,7 @@ 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 @@ /* 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 @@ int change_p = 0; if (!info) - return; + return 0; for (new_val = val; new_val; new_val = new_val->next) {