From d0f4e1f5ac162d9c32381c65a0bc7b456e189826 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 17 Apr 2011 21:45:15 -0700 Subject: [PATCH] * alloc.c (check_sblock, check_string_bytes, check_string_free_list): Protoize. --- src/ChangeLog | 1 + src/alloc.c | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b7a4a6701e0..3ca41d7b51b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -18,6 +18,7 @@ (allocate_buffer): Don't assume sizeof (struct buffer) is a multiple of sizeof (EMACS_INT); it need not be, if alignof(EMACS_INT) < sizeof (EMACS_INT). + (check_sblock, check_string_bytes, check_string_free_list): Protoize. 2011-04-17 Chong Yidong diff --git a/src/alloc.c b/src/alloc.c index fbc075be3be..f2aeaa938eb 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1674,9 +1674,6 @@ init_strings (void) static int check_string_bytes_count; -static void check_string_bytes (int); -static void check_sblock (struct sblock *); - #define CHECK_STRING_BYTES(S) STRING_BYTES (S) @@ -1698,8 +1695,7 @@ string_bytes (struct Lisp_String *s) /* Check validity of Lisp strings' string_bytes member in B. */ static void -check_sblock (b) - struct sblock *b; +check_sblock (struct sblock *b) { struct sdata *from, *end, *from_end; @@ -1732,8 +1728,7 @@ check_sblock (b) recently allocated strings. Used for hunting a bug. */ static void -check_string_bytes (all_p) - int all_p; +check_string_bytes (int all_p) { if (all_p) { @@ -1761,7 +1756,7 @@ check_string_bytes (all_p) This may catch buffer overrun from a previous string. */ static void -check_string_free_list () +check_string_free_list (void) { struct Lisp_String *s; -- 2.39.2