chiark / gitweb /
util: remove union dirent_storage
authorFlorian Weimer <fweimer@redhat.com>
Thu, 19 Dec 2013 11:44:10 +0000 (12:44 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 21 Dec 2013 23:35:55 +0000 (18:35 -0500)
TODO
src/shared/util.h

diff --git a/TODO b/TODO
index 6caa02041888e5a589a1961112b4753366306f83..3a00eb12cfb17e47321b8ff0e8ad3ea0ffddea20 100644 (file)
--- a/TODO
+++ b/TODO
@@ -48,7 +48,6 @@ Features:
   - ensure scope units may be started only a single time
 
 * code cleanup
-  - get rid of readdir_r/dirent_storage stuff, it's unnecessary on Linux
   - we probably should replace the left-over uses of strv_append() and replace them by strv_push() or strv_extend()
 
 * switch to SipHash for hashmaps/sets?
index 3e0a6d5c1cd15a19f1af7ec8d69de649940f5b61..488ce3ba6dc27181449e2e3efa8bc556820276b2 100644 (file)
 #include "macro.h"
 #include "time-util.h"
 
-union dirent_storage {
-        struct dirent de;
-        uint8_t storage[offsetof(struct dirent, d_name) +
-                        ((NAME_MAX + 1 + sizeof(long)) & ~(sizeof(long) - 1))];
-};
-
 /* What is interpreted as whitespace? */
 #define WHITESPACE " \t\n\r"
 #define NEWLINE "\n\r"