]> diplodocus.org Git - nmh/blobdiff - uip/flist.c
Don't `else' after return. Simplify control flow.
[nmh] / uip / flist.c
index 6a10ad8abd7cb2efd7185e6bac04f50912a2bd74..84f6ba29427ecbd3619e6dde96343683a9aa3311 100644 (file)
@@ -17,9 +17,6 @@
 #include <h/mh.h>
 #include <h/utils.h>
 
-#define FALSE   0
-#define TRUE    1
-
 /*
  * We allocate space to record the names of folders
  * (foldersToDo array), this number of elements at a time.
@@ -121,8 +118,7 @@ main(int argc, char **argv)
      * If program was invoked with name ending
      * in `s', then add switch `-all'.
      */
-    if (argv[0][strlen (argv[0]) - 1] == 's')
-       all = TRUE;
+    all = EndsWithC(argv[0], 's');
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;