Fix some warnings.
This commit is contained in:
parent
06d26c4129
commit
52bfd5c7c9
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.88 2011/06/08 17:33:59 jasper Exp $
|
# $OpenBSD: Makefile,v 1.89 2011/07/03 17:14:23 ajacoutot Exp $
|
||||||
|
|
||||||
SHARED_ONLY= Yes
|
SHARED_ONLY= Yes
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ COMMENT= data backends for the Evolution mail/PIM suite
|
|||||||
GNOME_PROJECT= evolution-data-server
|
GNOME_PROJECT= evolution-data-server
|
||||||
GNOME_VERSION= 2.32.3
|
GNOME_VERSION= 2.32.3
|
||||||
|
|
||||||
REVISION= 1
|
REVISION= 2
|
||||||
|
|
||||||
CATEGORIES= databases
|
CATEGORIES= databases
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-calendar_libedata-cal_test-intervaltree_c,v 1.3 2011/04/19 17:01:54 ajacoutot Exp $
|
$OpenBSD: patch-calendar_libedata-cal_test-intervaltree_c,v 1.4 2011/07/03 17:14:24 ajacoutot Exp $
|
||||||
--- calendar/libedata-cal/test-intervaltree.c.orig Tue Nov 23 04:26:37 2010
|
--- calendar/libedata-cal/test-intervaltree.c.orig Tue Nov 23 04:26:37 2010
|
||||||
+++ calendar/libedata-cal/test-intervaltree.c Sat Feb 26 16:47:10 2011
|
+++ calendar/libedata-cal/test-intervaltree.c Sat Feb 26 16:47:10 2011
|
||||||
@@ -162,7 +162,7 @@ create_test_component (time_t start, time_t end)
|
@@ -162,7 +162,7 @@ create_test_component (time_t start, time_t end)
|
||||||
@ -6,7 +6,7 @@ $OpenBSD: patch-calendar_libedata-cal_test-intervaltree_c,v 1.3 2011/04/19 17:01
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
- summary.value = g_strdup_printf ("%ld - %ld", start, end);
|
- summary.value = g_strdup_printf ("%ld - %ld", start, end);
|
||||||
+ summary.value = g_strdup_printf ("%ld - %ld", (long)start, (long)end);
|
+ summary.value = g_strdup_printf ("%ld - %ld", (long int)start, (long int)end);
|
||||||
summary.altrep = NULL;
|
summary.altrep = NULL;
|
||||||
|
|
||||||
e_cal_component_set_summary (comp, &summary);
|
e_cal_component_set_summary (comp, &summary);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-camel_camel-lock_c,v 1.2 2011/04/19 17:01:54 ajacoutot Exp $
|
$OpenBSD: patch-camel_camel-lock_c,v 1.3 2011/07/03 17:14:24 ajacoutot Exp $
|
||||||
--- camel/camel-lock.c.orig Tue Sep 28 07:46:38 2010
|
--- camel/camel-lock.c.orig Tue Sep 28 07:46:38 2010
|
||||||
+++ camel/camel-lock.c Tue Sep 28 07:46:50 2010
|
+++ camel/camel-lock.c Tue Sep 28 07:46:50 2010
|
||||||
@@ -128,7 +128,7 @@ camel_lock_dot (const gchar *path,
|
@@ -128,7 +128,7 @@ camel_lock_dot (const gchar *path,
|
||||||
@ -6,7 +6,7 @@ $OpenBSD: patch-camel_camel-lock_c,v 1.2 2011/04/19 17:01:54 ajacoutot Exp $
|
|||||||
if (g_stat(lock, &st) == 0) {
|
if (g_stat(lock, &st) == 0) {
|
||||||
time_t now = time (NULL);
|
time_t now = time (NULL);
|
||||||
- (printf("There is an existing lock %ld seconds old\n", now-st.st_ctime));
|
- (printf("There is an existing lock %ld seconds old\n", now-st.st_ctime));
|
||||||
+ (printf("There is an existing lock %ld seconds old\n", (long)now-st.st_ctime));
|
+ (printf("There is an existing lock %ld seconds old\n", (long int)now-st.st_ctime));
|
||||||
if (st.st_ctime < now - CAMEL_LOCK_DOT_STALE) {
|
if (st.st_ctime < now - CAMEL_LOCK_DOT_STALE) {
|
||||||
d(printf("Removing it now\n"));
|
d(printf("Removing it now\n"));
|
||||||
unlink(lock);
|
unlink(lock);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.126 2011/06/28 09:40:13 ajacoutot Exp $
|
# $OpenBSD: Makefile,v 1.127 2011/07/03 17:14:23 ajacoutot Exp $
|
||||||
|
|
||||||
COMMENT-main= general-purpose utility library
|
COMMENT-main= general-purpose utility library
|
||||||
COMMENT-docs= glib2 documentation
|
COMMENT-docs= glib2 documentation
|
||||||
@ -8,7 +8,7 @@ DISTNAME= glib-${VERSION}
|
|||||||
PKGNAME-main= glib2-${VERSION}
|
PKGNAME-main= glib2-${VERSION}
|
||||||
PKGNAME-docs= glib2-docs-${VERSION}
|
PKGNAME-docs= glib2-docs-${VERSION}
|
||||||
|
|
||||||
REVISION-main= 0
|
REVISION-main= 1
|
||||||
|
|
||||||
CATEGORIES= devel
|
CATEGORIES= devel
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-glib_tests_gdatetime_c,v 1.1 2011/04/28 13:07:53 ajacoutot Exp $
|
$OpenBSD: patch-glib_tests_gdatetime_c,v 1.2 2011/07/03 17:14:24 ajacoutot Exp $
|
||||||
|
|
||||||
gdatetime.c:774: warning: format '%ld' expects type 'long int', but argument 3 has type 'time_t'
|
gdatetime.c:774: warning: format '%ld' expects type 'long int', but argument 3 has type 'time_t'
|
||||||
|
|
||||||
@ -9,7 +9,7 @@ gdatetime.c:774: warning: format '%ld' expects type 'long int', but argument 3 h
|
|||||||
tt.tm_hour = 0;
|
tt.tm_hour = 0;
|
||||||
t = mktime (&tt);
|
t = mktime (&tt);
|
||||||
- g_sprintf (t_str, "%ld", t);
|
- g_sprintf (t_str, "%ld", t);
|
||||||
+ g_sprintf (t_str, "%ld", (long)t);
|
+ g_sprintf (t_str, "%ld", (long int)t);
|
||||||
|
|
||||||
TEST_PRINTF ("%a", "Sat");
|
TEST_PRINTF ("%a", "Sat");
|
||||||
TEST_PRINTF ("%A", "Saturday");
|
TEST_PRINTF ("%A", "Saturday");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.124 2011/04/22 07:39:37 ajacoutot Exp $
|
# $OpenBSD: Makefile,v 1.125 2011/07/03 17:14:23 ajacoutot Exp $
|
||||||
|
|
||||||
COMMENT-main= integrated email and PIM software for GNOME
|
COMMENT-main= integrated email and PIM software for GNOME
|
||||||
COMMENT-plugins= additionnal plugins for evolution
|
COMMENT-plugins= additionnal plugins for evolution
|
||||||
@ -9,6 +9,8 @@ GNOME_VERSION= 2.32.3
|
|||||||
PKGNAME-main= ${DISTNAME}
|
PKGNAME-main= ${DISTNAME}
|
||||||
PKGNAME-plugins= evolution-plugins-${GNOME_VERSION}
|
PKGNAME-plugins= evolution-plugins-${GNOME_VERSION}
|
||||||
|
|
||||||
|
REVISION-main= 0
|
||||||
|
|
||||||
# Only get the first x.y which is needed in the PLIST.
|
# Only get the first x.y which is needed in the PLIST.
|
||||||
# NOTE: when major version changes, increment EVO_VERSION accordingly
|
# NOTE: when major version changes, increment EVO_VERSION accordingly
|
||||||
# and bump:
|
# and bump:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-e-util_e-logger_c,v 1.1 2011/04/16 05:50:25 ajacoutot Exp $
|
$OpenBSD: patch-e-util_e-logger_c,v 1.2 2011/07/03 17:14:24 ajacoutot Exp $
|
||||||
|
|
||||||
e-logger.c:220: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
|
e-logger.c:220: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
|
||||||
e-logger.c:221: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
|
e-logger.c:221: warning: format '%ld' expects type 'long int', but argument 4 has type 'time_t'
|
||||||
@ -11,8 +11,8 @@ e-logger.c:221: warning: format '%ld' expects type 'long int', but argument 4 ha
|
|||||||
|
|
||||||
- fprintf (logger->priv->fp, "%d:%ld:%s\n", level, t, primary);
|
- fprintf (logger->priv->fp, "%d:%ld:%s\n", level, t, primary);
|
||||||
- fprintf (logger->priv->fp, "%d:%ld:%s\n", level, t, secondary);
|
- fprintf (logger->priv->fp, "%d:%ld:%s\n", level, t, secondary);
|
||||||
+ fprintf (logger->priv->fp, "%d:%ld:%s\n", level, (long)t, primary);
|
+ fprintf (logger->priv->fp, "%d:%ld:%s\n", level, (long int)t, primary);
|
||||||
+ fprintf (logger->priv->fp, "%d:%ld:%s\n", level, (long)t, secondary);
|
+ fprintf (logger->priv->fp, "%d:%ld:%s\n", level, (long int)t, secondary);
|
||||||
logger_set_dirty (logger);
|
logger_set_dirty (logger);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: Makefile,v 1.5 2011/06/08 18:15:41 jasper Exp $
|
# $OpenBSD: Makefile,v 1.6 2011/07/03 17:14:23 ajacoutot Exp $
|
||||||
|
|
||||||
SHARED_ONLY= Yes
|
SHARED_ONLY= Yes
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ COMMENT= unified backend for PIM programs
|
|||||||
GNOME_PROJECT= evolution-data-server
|
GNOME_PROJECT= evolution-data-server
|
||||||
GNOME_VERSION= 3.0.2.1
|
GNOME_VERSION= 3.0.2.1
|
||||||
|
|
||||||
REVISION= 1
|
REVISION= 2
|
||||||
|
|
||||||
CATEGORIES= databases
|
CATEGORIES= databases
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-calendar_libedata-cal_test-intervaltree_c,v 1.1.1.1 2011/05/17 17:07:32 ajacoutot Exp $
|
$OpenBSD: patch-calendar_libedata-cal_test-intervaltree_c,v 1.2 2011/07/03 17:14:24 ajacoutot Exp $
|
||||||
--- calendar/libedata-cal/test-intervaltree.c.orig Tue Nov 23 04:26:37 2010
|
--- calendar/libedata-cal/test-intervaltree.c.orig Tue Nov 23 04:26:37 2010
|
||||||
+++ calendar/libedata-cal/test-intervaltree.c Sat Feb 26 16:47:10 2011
|
+++ calendar/libedata-cal/test-intervaltree.c Sat Feb 26 16:47:10 2011
|
||||||
@@ -162,7 +162,7 @@ create_test_component (time_t start, time_t end)
|
@@ -162,7 +162,7 @@ create_test_component (time_t start, time_t end)
|
||||||
@ -6,7 +6,7 @@ $OpenBSD: patch-calendar_libedata-cal_test-intervaltree_c,v 1.1.1.1 2011/05/17 1
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
- summary.value = g_strdup_printf ("%ld - %ld", start, end);
|
- summary.value = g_strdup_printf ("%ld - %ld", start, end);
|
||||||
+ summary.value = g_strdup_printf ("%ld - %ld", (long)start, (long)end);
|
+ summary.value = g_strdup_printf ("%ld - %ld", (long int)start, (long int)end);
|
||||||
summary.altrep = NULL;
|
summary.altrep = NULL;
|
||||||
|
|
||||||
e_cal_component_set_summary (comp, &summary);
|
e_cal_component_set_summary (comp, &summary);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
$OpenBSD: patch-camel_camel-lock_c,v 1.1.1.1 2011/05/17 17:07:32 ajacoutot Exp $
|
$OpenBSD: patch-camel_camel-lock_c,v 1.2 2011/07/03 17:14:24 ajacoutot Exp $
|
||||||
--- camel/camel-lock.c.orig Thu Sep 16 14:47:54 2010
|
--- camel/camel-lock.c.orig Thu Sep 16 14:47:54 2010
|
||||||
+++ camel/camel-lock.c Tue May 17 13:40:32 2011
|
+++ camel/camel-lock.c Tue May 17 13:40:32 2011
|
||||||
@@ -128,7 +128,7 @@ camel_lock_dot (const gchar *path,
|
@@ -128,7 +128,7 @@ camel_lock_dot (const gchar *path,
|
||||||
@ -6,7 +6,7 @@ $OpenBSD: patch-camel_camel-lock_c,v 1.1.1.1 2011/05/17 17:07:32 ajacoutot Exp $
|
|||||||
if (g_stat (lock, &st) == 0) {
|
if (g_stat (lock, &st) == 0) {
|
||||||
time_t now = time (NULL);
|
time_t now = time (NULL);
|
||||||
- (printf("There is an existing lock %ld seconds old\n", now-st.st_ctime));
|
- (printf("There is an existing lock %ld seconds old\n", now-st.st_ctime));
|
||||||
+ (printf("There is an existing lock %ld seconds old\n", (long)now-st.st_ctime));
|
+ (printf("There is an existing lock %ld seconds old\n", (long int)now-st.st_ctime));
|
||||||
if (st.st_ctime < now - CAMEL_LOCK_DOT_STALE) {
|
if (st.st_ctime < now - CAMEL_LOCK_DOT_STALE) {
|
||||||
d(printf("Removing it now\n"));
|
d(printf("Removing it now\n"));
|
||||||
unlink (lock);
|
unlink (lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user