Mercurial > emacs
changeset 29468:2d728b3d9f5f
(P_): Use PROTOTYPES.
(safe_strdup): Declare arg const.
(lw_modify_all_widgets) <!info>: Return 0.
author | Dave Love <fx@gnu.org> |
---|---|
date | Tue, 06 Jun 2000 14:15:49 +0000 |
parents | 03450acee9d8 |
children | f9b5fe053f7c |
files | lwlib/lwlib.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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) {