Remove handrolled strcmp()'s
Favor readability over bare-metal.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user