mirror of https://github.com/omar-polo/gmid.git
print a deprecation message for the map rule
This commit is contained in:
parent
4ee085938f
commit
6468868fee
9
parse.y
9
parse.y
|
@ -218,10 +218,15 @@ option : CHROOT string { conf.chroot = $2; }
|
||||||
| MIME STRING string {
|
| MIME STRING string {
|
||||||
yywarn("`mime MIME EXT' is deprecated and will be "
|
yywarn("`mime MIME EXT' is deprecated and will be "
|
||||||
"removed in a future version, please use the new "
|
"removed in a future version, please use the new "
|
||||||
"syntax: `map MIME to-ext EXT'");
|
"`types' block.");
|
||||||
add_mime(&conf.mime, $2, $3);
|
add_mime(&conf.mime, $2, $3);
|
||||||
}
|
}
|
||||||
| MAP string TOEXT string { add_mime(&conf.mime, $2, $4); }
|
| MAP string TOEXT string {
|
||||||
|
yywarn("`map mime to-ext' is deprecated and will be "
|
||||||
|
"removed in a future version, please use the new "
|
||||||
|
"`types' block.");
|
||||||
|
add_mime(&conf.mime, $2, $4);
|
||||||
|
}
|
||||||
| PORT NUM { conf.port = check_port_num($2); }
|
| PORT NUM { conf.port = check_port_num($2); }
|
||||||
| PREFORK NUM { conf.prefork = check_prefork_num($2); }
|
| PREFORK NUM { conf.prefork = check_prefork_num($2); }
|
||||||
| PROTOCOLS string {
|
| PROTOCOLS string {
|
||||||
|
|
Loading…
Reference in New Issue