cut down size of some libc struct members
authorRich Felker <dalias@aerifal.cx>
Fri, 22 May 2020 21:25:38 +0000 (17:25 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 22 May 2020 21:39:57 +0000 (17:39 -0400)
these are all flags that can be single-byte values.

src/internal/libc.h

index c0614852eb3cee5a13e9d9423d6eef5177a2b332..d47f58e01df958988347a2fcc9fd63ff3703ba19 100644 (file)
@@ -18,9 +18,9 @@ struct tls_module {
 };
 
 struct __libc {
-       int can_do_threads;
-       int threaded;
-       int secure;
+       char can_do_threads;
+       char threaded;
+       char secure;
        int threads_minus_1;
        size_t *auxv;
        struct tls_module *tls_head;