From 9f739445cd3deddd0343c3a8d5a981ede26bef30 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 16 Dec 2006 23:49:13 +0000 Subject: inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid] --- networking/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/tftp.c') diff --git a/networking/tftp.c b/networking/tftp.c index 64d376fa7..a62c5d8cc 100644 --- a/networking/tftp.c +++ b/networking/tftp.c @@ -530,7 +530,7 @@ int tftp_main(int argc, char **argv) if ((localfile == NULL && remotefile == NULL) || (argv[optind] == NULL)) bb_show_usage(); - if (localfile == NULL || strcmp(localfile, "-") == 0) { + if (localfile == NULL || LONE_DASH(localfile)) { fd = (cmd == tftp_cmd_get) ? STDOUT_FILENO : STDIN_FILENO; } else { fd = open(localfile, flags, 0644); /* fail below */ -- cgit v1.2.3-55-g6feb