about summary refs log tree commit diff
path: root/src/internal
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-06 20:20:23 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-06 20:20:23 -0400
commit357876052b125dcd74882f61afec19d8f519074c (patch)
tree60b44fc4105d9e4a90fadcbde4cf29960a38c2cf /src/internal
parent98acf04fc00cbded6169056f2cd541d31725c091 (diff)
downloadmusl-357876052b125dcd74882f61afec19d8f519074c.tar.gz
musl-357876052b125dcd74882f61afec19d8f519074c.tar.xz
musl-357876052b125dcd74882f61afec19d8f519074c.zip
simplify multi-threaded errno, eliminate useless function pointer
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/libc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/internal/libc.h b/src/internal/libc.h
index 07ed70cd..b81c9ae7 100644
--- a/src/internal/libc.h
+++ b/src/internal/libc.h
@@ -5,7 +5,7 @@
 #include <stdio.h>
 
 struct __libc {
-	int *(*errno_location)(void);
+	void *main_thread;
 	int threaded;
 	int canceldisable;
 	int (*atexit)(void (*)(void));
@@ -14,7 +14,6 @@ struct __libc {
 	volatile int threads_minus_1;
 	int ofl_lock;
 	FILE *ofl_head;
-	void *main_thread;
 };