diff options
author | obrien <obrien@FreeBSD.org> | 2008-08-21 14:12:34 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2008-08-21 14:12:34 +0000 |
commit | 4dd155254adc4e96a9b0713f38332ed3eb7f84b9 (patch) | |
tree | ab71929b4ae232261d8b5d809d8723e55cc19ffa /usr.bin | |
parent | 6df81d1188771f0e9c86c5cb6d7282650c1fc353 (diff) | |
download | FreeBSD-src-4dd155254adc4e96a9b0713f38332ed3eb7f84b9.zip FreeBSD-src-4dd155254adc4e96a9b0713f38332ed3eb7f84b9.tar.gz |
Use the SCHEME_ knobs rather than knowing what they expand to.
Reviewed by: des
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/fetch/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |