summaryrefslogtreecommitdiff
path: root/libc/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib')
-rw-r--r--libc/stdlib/abort.c2
-rw-r--r--libc/stdlib/getpt.c4
-rw-r--r--libc/stdlib/malloc/heap_debug.c2
-rw-r--r--libc/stdlib/malloc/malloc.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c
index 2146cc3db..e2c9962f2 100644
--- a/libc/stdlib/abort.c
+++ b/libc/stdlib/abort.c
@@ -46,7 +46,7 @@ libc_hidden_proto(_exit)
#ifdef __UCLIBC_HAS_STDIO_SHUTDOWN_ON_ABORT__
extern void weak_function _stdio_term(void) attribute_hidden;
#endif
-static int been_there_done_that = 0;
+static smallint been_there_done_that = 0;
/* Be prepared in case multiple threads try to abort() */
#include <bits/uClibc_mutex.h>
diff --git a/libc/stdlib/getpt.c b/libc/stdlib/getpt.c
index cab96bb06..3dbaf9ed7 100644
--- a/libc/stdlib/getpt.c
+++ b/libc/stdlib/getpt.c
@@ -50,7 +50,7 @@ int
getpt (void)
{
#if !defined __UNIX98PTY_ONLY__
- static int have_no_dev_ptmx;
+ static smallint have_no_dev_ptmx;
#endif
int fd;
@@ -65,7 +65,7 @@ getpt (void)
return fd;
#else
struct statfs fsbuf;
- static int devpts_mounted;
+ static smallint devpts_mounted;
/* Check that the /dev/pts filesystem is mounted
or if /dev is a devfs filesystem (this implies /dev/pts). */
diff --git a/libc/stdlib/malloc/heap_debug.c b/libc/stdlib/malloc/heap_debug.c
index e83831d3a..a2a9f4ec1 100644
--- a/libc/stdlib/malloc/heap_debug.c
+++ b/libc/stdlib/malloc/heap_debug.c
@@ -49,7 +49,7 @@ __heap_dump_freelist (struct heap *heap)
void
__heap_dump (struct heap *heap, const char *str)
{
- static int recursed = 0;
+ static smallint recursed;
if (! recursed)
{
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
index 770d7aea3..ce74c5608 100644
--- a/libc/stdlib/malloc/malloc.c
+++ b/libc/stdlib/malloc/malloc.c
@@ -184,7 +184,7 @@ malloc (size_t size)
{
void *mem;
#ifdef MALLOC_DEBUGGING
- static int debugging_initialized = 0;
+ static smallint debugging_initialized;
if (! debugging_initialized)
{
debugging_initialized = 1;