diff options
author | Dave Love <fx@gnu.org> | 2000-06-06 14:15:49 +0000 |
---|---|---|
committer | Dave Love <fx@gnu.org> | 2000-06-06 14:15:49 +0000 |
commit | fdc4d3cdb986ac3c4d7f31e881b644f86901f033 (patch) | |
tree | 423e4ab9e11afea0d8c7b852bd945046a24f8453 /lwlib | |
parent | 200ca4d576f1b0924a72dfe2884ce9a66787b6a0 (diff) | |
download | emacs-fdc4d3cdb986ac3c4d7f31e881b644f86901f033.tar.gz |
(P_): Use PROTOTYPES.
(safe_strdup): Declare arg const.
(lw_modify_all_widgets) <!info>: Return 0.
Diffstat (limited to 'lwlib')
-rw-r--r-- | lwlib/lwlib.c | 6 |
1 files 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) { |