aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/liolib.c b/liolib.c
index 6d584572..cc572a55 100644
--- a/liolib.c
+++ b/liolib.c
@@ -177,7 +177,7 @@ static int io_tmpfile (lua_State *L) {
177 177
178static int io_fromto (lua_State *L, int inout, const char *mode) { 178static int io_fromto (lua_State *L, int inout, const char *mode) {
179 FILE *current; 179 FILE *current;
180 if (lua_isnull(L, 1)) { 180 if (lua_isnone(L, 1)) {
181 getopthandle(L, inout); 181 getopthandle(L, inout);
182 resetfile(L, inout); 182 resetfile(L, inout);
183 return io_close(L); 183 return io_close(L);
@@ -405,7 +405,7 @@ static int io_seek (lua_State *L) {
405 405
406 406
407static int io_flush (lua_State *L) { 407static int io_flush (lua_State *L) {
408 FILE *f = (lua_isnull(L, 1)) ? (FILE *)(NULL) : 408 FILE *f = (lua_isnone(L, 1)) ? (FILE *)(NULL) :
409 (FILE *)(luaL_check_userdata(L, 1, FILEHANDLE)); 409 (FILE *)(luaL_check_userdata(L, 1, FILEHANDLE));
410 return pushresult(L, fflush(f) == 0); 410 return pushresult(L, fflush(f) == 0);
411} 411}
@@ -525,7 +525,7 @@ static int io_date (lua_State *L) {
525 525
526 526
527static int io_time (lua_State *L) { 527static int io_time (lua_State *L) {
528 if (lua_isnull(L, 1)) /* called without args? */ 528 if (lua_isnone(L, 1)) /* called without args? */
529 lua_pushnumber(L, time(NULL)); /* return current time */ 529 lua_pushnumber(L, time(NULL)); /* return current time */
530 else { 530 else {
531 time_t t; 531 time_t t;