diff --git a/README.md b/README.md index 1610e2b..8b02d39 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,12 @@ ## Documentation [API](http://moteus.github.com/lcurl) +## Installation + +``` +luarocks install lcurl --server=https://rocks.moonscript.org/dev +``` + ## Usage ```Lua diff --git a/src/lcutils.c b/src/lcutils.c index a436e69..331824d 100644 --- a/src/lcutils.c +++ b/src/lcutils.c @@ -98,7 +98,7 @@ void lcurl_util_slist_to_table(lua_State *L, struct curl_slist* list){ } void lcurl_util_set_const(lua_State *L, const lcurl_const_t *reg){ - lcurl_const_t *p; + const lcurl_const_t *p; for(p = reg; p->name; ++p){ lua_pushstring(L, p->name); lua_pushnumber(L, p->value);