aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/fetch/fetch.c
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2008-08-21 14:12:34 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2008-08-21 14:12:34 +0000
commit8acee1c0cab09f9934495412fc2655d58ebc355b (patch)
treeab71929b4ae232261d8b5d809d8723e55cc19ffa /usr.bin/fetch/fetch.c
parent7f15c32d768611f7b0a3fe0dad95a0a9fffd0c04 (diff)
downloadsrc-8acee1c0cab09f9934495412fc2655d58ebc355b.tar.gz
src-8acee1c0cab09f9934495412fc2655d58ebc355b.zip
Use the SCHEME_ knobs rather than knowing what they expand to.
Reviewed by: des
Notes
Notes: svn path=/head/; revision=181962
Diffstat (limited to 'usr.bin/fetch/fetch.c')
-rw-r--r--usr.bin/fetch/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/fetch/fetch.c b/usr.bin/fetch/fetch.c
index d19a25703f27..3dc276aaf719 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)