hal: Branch 'master'

Danny Kukawka dkukawka at kemper.freedesktop.org
Mon Mar 5 14:52:10 PST 2007


 libhal/libhal.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree b555e22e7418e7f77b6cf5cdf91bba2113282f22 (from f1a782ba96ce5a555c606170c23792ab31e6980c)
Author: Danny Kukawka <danny.kukawka at web.de>
Date:   Mon Mar 5 23:51:44 2007 +0100

    fix compiler warning in libhal
    
    Fixed compiler warning in libhal within fprintf().

diff --git a/libhal/libhal.c b/libhal/libhal.c
index 89c8a93..f40d6a4 100644
--- a/libhal/libhal.c
+++ b/libhal/libhal.c
@@ -2877,8 +2877,8 @@ libhal_ctx_new (void)
 	ctx = calloc (1, sizeof (LibHalContext));
 	if (ctx == NULL) {
 		fprintf (stderr, 
-			 "%s %d : Failed to allocate %d bytes\n",
-			 __FILE__, __LINE__, sizeof (LibHalContext));
+			 "%s %d : Failed to allocate %lu bytes\n",
+			 __FILE__, __LINE__, (unsigned long) sizeof (LibHalContext));
 		return NULL;
 	}
 


More information about the hal-commit mailing list