jani Fri Jul 20 23:53:30 2007 UTC
Modified files:
/php-src/ext/date/lib timelib.c timelib.h
Log:
- Fix warnings
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/timelib.c?r1=1.16&r2=1.17&diff_format=u
Index: php-src/ext/date/lib/timelib.c
diff -u php-src/ext/date/lib/timelib.c:1.16 php-src/ext/date/lib/timelib.c:1.17
--- php-src/ext/date/lib/timelib.c:1.16 Fri Jul 13 17:49:18 2007
+++ php-src/ext/date/lib/timelib.c Fri Jul 20 23:53:29 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: timelib.c,v 1.16 2007/07/13 17:49:18 derick Exp $ */
+/* $Id: timelib.c,v 1.17 2007/07/20 23:53:29 jani Exp $ */
#include "timelib.h"
#include <ctype.h>
@@ -30,7 +30,7 @@
#define TIMELIB_LLABS(y) (y < 0 ? (y * -1) : y)
-timelib_time* timelib_time_ctor()
+timelib_time* timelib_time_ctor(void)
{
timelib_time *t;
t = calloc(1, sizeof(timelib_time));
@@ -55,7 +55,7 @@
TIMELIB_TIME_FREE(t);
}
-timelib_time_offset* timelib_time_offset_ctor()
+timelib_time_offset* timelib_time_offset_ctor(void)
{
timelib_time_offset *t;
t = calloc(1, sizeof(timelib_time_offset));
http://cvs.php.net/viewvc.cgi/php-src/ext/date/lib/timelib.h?r1=1.23&r2=1.24&diff_format=u
Index: php-src/ext/date/lib/timelib.h
diff -u php-src/ext/date/lib/timelib.h:1.23 php-src/ext/date/lib/timelib.h:1.24
--- php-src/ext/date/lib/timelib.h:1.23 Mon Jan 1 09:29:22 2007
+++ php-src/ext/date/lib/timelib.h Fri Jul 20 23:53:29 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: timelib.h,v 1.23 2007/01/01 09:29:22 sebastian Exp $ */
+/* $Id: timelib.h,v 1.24 2007/07/20 23:53:29 jani Exp $ */
#ifndef __TIMELIB_H__
#define __TIMELIB_H__
@@ -79,17 +79,17 @@
const timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int
*count);
/* From timelib.c */
-timelib_tzinfo* timelib_tzinfo_ctor();
+timelib_tzinfo* timelib_tzinfo_ctor(char *name);
void timelib_time_tz_abbr_update(timelib_time* tm, char* tz_abbr);
void timelib_time_tz_name_update(timelib_time* tm, char* tz_name);
void timelib_tzinfo_dtor(timelib_tzinfo *tz);
timelib_tzinfo* timelib_tzinfo_clone(timelib_tzinfo *tz);
-timelib_time* timelib_time_ctor();
+timelib_time* timelib_time_ctor(void);
void timelib_time_set_option(timelib_time* tm, int option, void* option_value);
void timelib_time_dtor(timelib_time* t);
-timelib_time_offset* timelib_time_offset_ctor();
+timelib_time_offset* timelib_time_offset_ctor(void);
void timelib_time_offset_dtor(timelib_time_offset* t);
void timelib_error_container_dtor(timelib_error_container *errors);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php