diff options
| author | Dave Love | 2000-06-06 14:15:49 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-06 14:15:49 +0000 |
| commit | fdc4d3cdb986ac3c4d7f31e881b644f86901f033 (patch) | |
| tree | 423e4ab9e11afea0d8c7b852bd945046a24f8453 | |
| parent | 200ca4d576f1b0924a72dfe2884ce9a66787b6a0 (diff) | |
| download | emacs-fdc4d3cdb986ac3c4d7f31e881b644f86901f033.tar.gz emacs-fdc4d3cdb986ac3c4d7f31e881b644f86901f033.zip | |
(P_): Use PROTOTYPES.
(safe_strdup): Declare arg const.
(lw_modify_all_widgets) <!info>: Return 0.
| -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"; | |||
| 75 | char *lwlib_toolkit_type = "lucid"; | 75 | char *lwlib_toolkit_type = "lucid"; |
| 76 | #endif | 76 | #endif |
| 77 | 77 | ||
| 78 | #if defined __STDC__ | 78 | #if defined __STDC__ || defined PROTOTYPES |
| 79 | #define P_(x) x | 79 | #define P_(x) x |
| 80 | #else | 80 | #else |
| 81 | #define P_(x) () | 81 | #define P_(x) () |
| @@ -142,7 +142,7 @@ lwlib_bcopy (from, to, length) | |||
| 142 | /* utility functions for widget_instance and widget_info */ | 142 | /* utility functions for widget_instance and widget_info */ |
| 143 | char * | 143 | char * |
| 144 | safe_strdup (s) | 144 | safe_strdup (s) |
| 145 | char *s; | 145 | const char *s; |
| 146 | { | 146 | { |
| 147 | char *result; | 147 | char *result; |
| 148 | if (! s) return 0; | 148 | if (! s) return 0; |
| @@ -753,7 +753,7 @@ lw_modify_all_widgets (id, val, deep_p) | |||
| 753 | int change_p = 0; | 753 | int change_p = 0; |
| 754 | 754 | ||
| 755 | if (!info) | 755 | if (!info) |
| 756 | return; | 756 | return 0; |
| 757 | 757 | ||
| 758 | for (new_val = val; new_val; new_val = new_val->next) | 758 | for (new_val = val; new_val; new_val = new_val->next) |
| 759 | { | 759 | { |