dcwifi: Add Dual Channel Wi-Fi component packages
[feed/packages.git] / net / dcwifi / mrmctl / patches / 01_replace_bzero.patch
1 --- a/userland/mrmctl/mrmctl.c
2 +++ b/userland/mrmctl/mrmctl.c
3 @@ -139,7 +139,7 @@ remap(int argc, char **argv) {
4 if (argc < 5) return 1; /* defensive */
5
6 /* initialize variables and put things into human-readable variable names */
7 - bzero(&re, sizeof(re));
8 + memset(&re, 0, sizeof(re));
9 filter_name = argv[2];
10 match_macaddr = argv[3];
11
12 diff --git a/userland/mrmfilterparser/mrm_filter_conf_parser.c b/userland/mrmfilterparser/mrm_filter_conf_parser.c
13 index 926fa76..f5c54c1 100644
14 --- a/userland/mrmfilterparser/mrm_filter_conf_parser.c
15 +++ b/userland/mrmfilterparser/mrm_filter_conf_parser.c
16 @@ -319,7 +319,7 @@ filter_file_loadf(struct mrm_filter_config * const output, FILE * const f) {
17 return -1;
18
19 output->rules_active = 0;
20 - bzero(output->rules, sizeof(output->rules)); /* defensive */
21 + memset(output->rules, 0, sizeof(output->rules)); /* defensive */
22
23 for (linenum = 1; fgets(buf, sizeof(buf), f) != NULL; linenum++) {
24