mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use the SCHEME_ knobs rather than knowing what they expand to.
Reviewed by: des
This commit is contained in:
parent
7f15c32d76
commit
8acee1c0ca
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue