Remove handrolled strcmp()'s

Favor readability over bare-metal.
This commit is contained in:
FRIGN
2015-05-19 17:44:15 +02:00
committed by sin
parent 1797df01e7
commit 9a074144c9
21 changed files with 31 additions and 21 deletions

View File

@@ -2,6 +2,7 @@
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
#include "util.h"
@@ -114,7 +115,7 @@ main(int argc, char *argv[])
if (!argc || argc > 2)
usage();
if (argc == 1 || (argv[0][0] == '-' && !argv[0][1])) {
if (argc == 1 || !strcmp(argv[0], "-")) {
if (mflag)
uuencodeb64(stdin, argv[0], "<stdin>");
else