Build fixes
This commit is contained in:
parent
64d9a00a99
commit
6e7c32fa7d
2 changed files with 2 additions and 5 deletions
|
@ -23,12 +23,9 @@ $(UCI_FILE):
|
||||||
$(UCI_PATCHDIR)/series:
|
$(UCI_PATCHDIR)/series:
|
||||||
(cd $(UCI_PATCHDIR); ls *.patch | sort > series)
|
(cd $(UCI_PATCHDIR); ls *.patch | sort > series)
|
||||||
|
|
||||||
$(UCI_DIR)/.prepared: $(UCI_PATCHDIR)/series $(UCI_FILE)
|
$(UCI_DIR)/.prepared: $(UCI_FILE)
|
||||||
rm -rf $(UCI_DIR)
|
rm -rf $(UCI_DIR)
|
||||||
tar xvfz $(UCI_FILE)
|
tar xvfz $(UCI_FILE)
|
||||||
while read patch; do \
|
|
||||||
patch -d $(UCI_DIR) -p1 < $(UCI_PATCHDIR)/$$patch; \
|
|
||||||
done < $(UCI_PATCHDIR)/series
|
|
||||||
touch $@
|
touch $@
|
||||||
|
|
||||||
compile: $(UCI_DIR)/.prepared
|
compile: $(UCI_DIR)/.prepared
|
||||||
|
|
|
@ -83,7 +83,7 @@ int nixio__check_mode(lua_State *L, int idx, int def) {
|
||||||
if (i == 9) { /* successfully parsed */
|
if (i == 9) { /* successfully parsed */
|
||||||
return mode;
|
return mode;
|
||||||
}
|
}
|
||||||
} else if (lua_isinteger(L, idx)) {
|
} else if (lua_isnumber(L, idx)) {
|
||||||
int decmode = lua_tointeger(L, idx);
|
int decmode = lua_tointeger(L, idx);
|
||||||
int s = (decmode % 10000) / 1000;
|
int s = (decmode % 10000) / 1000;
|
||||||
int u = (decmode % 1000) / 100;
|
int u = (decmode % 1000) / 100;
|
||||||
|
|
Loading…
Reference in a new issue