From 4dd155254adc4e96a9b0713f38332ed3eb7f84b9 Mon Sep 17 00:00:00 2001 From: obrien Date: Thu, 21 Aug 2008 14:12:34 +0000 Subject: Use the SCHEME_ knobs rather than knowing what they expand to. Reviewed by: des --- usr.bin/fetch/fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/fetch/fetch.c') diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c index d19a257..3dc276a 100644 --- a/usr.bin/fetch/fetch.c +++ b/usr.bin/fetch/fetch.c @@ -364,7 +364,7 @@ fetch(char *URL, const char *path) } /* FTP specific flags */ - if (strcmp(url->scheme, "ftp") == 0) { + if (strcmp(url->scheme, SCHEME_FTP) == 0) { if (p_flag) strcat(flags, "p"); if (d_flag) @@ -375,7 +375,7 @@ fetch(char *URL, const char *path) } /* HTTP specific flags */ - if (strcmp(url->scheme, "http") == 0) { + if (strcmp(url->scheme, SCHEME_HTTP) == 0) { if (d_flag) strcat(flags, "d"); if (A_flag) -- cgit v1.1