[asterisk-commits] mnicholson: testsuite/asterisk/trunk r434 - /asterisk/trunk/asttest/tools/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Jun 24 12:40:40 CDT 2010


Author: mnicholson
Date: Thu Jun 24 12:40:36 2010
New Revision: 434

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=434
Log:
Use luaL_checklong() instead of luaL_checkint() in the posix.usleep implementation

Modified:
    asterisk/trunk/asttest/tools/luaposix.diff

Modified: asterisk/trunk/asttest/tools/luaposix.diff
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/tools/luaposix.diff?view=diff&rev=434&r1=433&r2=434
==============================================================================
--- asterisk/trunk/asttest/tools/luaposix.diff (original)
+++ asterisk/trunk/asttest/tools/luaposix.diff Thu Jun 24 12:40:36 2010
@@ -1,13 +1,13 @@
 diff -ruN a/lposix.c b/lposix.c
 --- a/lposix.c	2008-07-18 09:30:36.000000000 -0500
-+++ b/lposix.c	2010-06-22 15:05:04.000000000 -0500
++++ b/lposix.c	2010-06-24 12:29:36.000000000 -0500
 @@ -575,6 +575,13 @@
  	return 1;
  }
  
 +static int Pusleep(lua_State *L)			/** usleep(usec) */
 +{
-+	useconds_t usec = luaL_checkint(L, 1);
++	useconds_t usec = luaL_checklong(L, 1);
 +	lua_pushinteger(L, usleep(usec));
 +	return 1;
 +}
@@ -25,7 +25,7 @@
  	{"times",		Ptimes},
 diff -ruN a/lposix.h b/lposix.h
 --- a/lposix.h	1969-12-31 18:00:00.000000000 -0600
-+++ b/lposix.h	2010-06-22 15:05:04.000000000 -0500
++++ b/lposix.h	2010-06-22 15:29:02.000000000 -0500
 @@ -0,0 +1,6 @@
 +#ifndef LPOSIX_H
 +#define LPOSIX_H
@@ -35,7 +35,7 @@
 +#endif
 diff -ruN a/Makefile b/Makefile
 --- a/Makefile	2008-07-18 09:31:56.000000000 -0500
-+++ b/Makefile	2010-06-22 15:05:04.000000000 -0500
++++ b/Makefile	2010-06-22 15:29:02.000000000 -0500
 @@ -25,7 +25,7 @@
  
  CPPFLAGS=	-fPIC $(INCS) $(WARN)




More information about the asterisk-commits mailing list