]> diplodocus.org Git - nmh/commitdiff
h/nmh.h: Remove unused NLENGTH(dirent) macro.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Apr 2017 15:42:51 +0000 (16:42 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 22 Apr 2017 15:42:51 +0000 (16:42 +0100)
It just does a strlen(3) of its argument's d_name;  that's not even done
longhand anyway.  And its name is very generic for such a narrow task.

h/nmh.h

diff --git a/h/nmh.h b/h/nmh.h
index d88ec529988e36c0ab40be9c3fdd9f3df5d08795..3f4c8b82255437240f4a3c9858e5203f364a4b26 100644 (file)
--- a/h/nmh.h
+++ b/h/nmh.h
@@ -28,7 +28,6 @@
 #include <sys/wait.h>
 
 # include <dirent.h>
 #include <sys/wait.h>
 
 # include <dirent.h>
-#define NLENGTH(dirent) strlen((dirent)->d_name)
 
 #include <stdlib.h>
 #include <stdarg.h>
 
 #include <stdlib.h>
 #include <stdarg.h>