aboutsummaryrefslogtreecommitdiff
path: root/loslib.c
diff options
context:
space:
mode:
Diffstat (limited to 'loslib.c')
-rw-r--r--loslib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loslib.c b/loslib.c
index 034acd5f..89aa794b 100644
--- a/loslib.c
+++ b/loslib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: loslib.c,v 1.6 2005/03/09 16:28:07 roberto Exp roberto $ 2** $Id: loslib.c,v 1.7 2005/03/18 18:02:04 roberto Exp roberto $
3** Standard Operating System library 3** Standard Operating System library
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -113,7 +113,7 @@ static int getfield (lua_State *L, const char *key, int d) {
113 res = (int)lua_tointeger(L, -1); 113 res = (int)lua_tointeger(L, -1);
114 else { 114 else {
115 if (d < 0) 115 if (d < 0)
116 return luaL_error(L, "field `%s' missing in date table", key); 116 return luaL_error(L, "field " LUA_SM " missing in date table", key);
117 res = d; 117 res = d;
118 } 118 }
119 lua_pop(L, 1); 119 lua_pop(L, 1);
@@ -151,7 +151,7 @@ static int io_date (lua_State *L) {
151 if (strftime(b, sizeof(b), s, stm)) 151 if (strftime(b, sizeof(b), s, stm))
152 lua_pushstring(L, b); 152 lua_pushstring(L, b);
153 else 153 else
154 return luaL_error(L, "`date' format too long"); 154 return luaL_error(L, LUA_SM " format too long", "date");
155 } 155 }
156 return 1; 156 return 1;
157} 157}