[package] mac80211: change wireless ifname numbering schema
[openwrt.git] / package / hotplug2 / patches / 170-non_fatal_include.patch
1 Index: hotplug2-201/parser/parser.c
2 ===================================================================
3 --- hotplug2-201.orig/parser/parser.c 2009-12-09 19:44:13.000000000 +0100
4 +++ hotplug2-201/parser/parser.c 2011-02-08 18:06:44.681213713 +0100
5 @@ -1,5 +1,7 @@
6 #include "parser.h"
7
8 +#include <errno.h>
9 +
10 /*
11 * Grammar:
12 * input => directive // TOKEN_ROOTKW
13 @@ -578,7 +580,7 @@
14 ctx.lexer.fp = fopen(filename, "r");
15 if (ctx.lexer.fp == NULL) {
16 parser_clear(&ctx);
17 - return -1;
18 + return (errno == ENOENT) ? 0 : -1;
19 }
20 ctx.lexer.filename = strdup(filename);
21
This page took 0.041794 seconds and 5 git commands to generate.