gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r10173 - doodle/src/doodle


From: gnunet
Subject: [GNUnet-SVN] r10173 - doodle/src/doodle
Date: Fri, 29 Jan 2010 20:24:16 +0100

Author: grothoff
Date: 2010-01-29 20:24:16 +0100 (Fri, 29 Jan 2010)
New Revision: 10173

Modified:
   doodle/src/doodle/doodle.c
   doodle/src/doodle/grow.c
Log:
fixes

Modified: doodle/src/doodle/doodle.c
===================================================================
--- doodle/src/doodle/doodle.c  2010-01-29 19:21:41 UTC (rev 10172)
+++ doodle/src/doodle/doodle.c  2010-01-29 19:24:16 UTC (rev 10173)
@@ -473,7 +473,7 @@
   int option_index;
   char * libraries = NULL;
   int do_build = 0;
-  size_t mem_limit = 0;
+  unsigned int mem_limit = 0;
   char * dbName;
   char * tmp;
   char * log = NULL;
@@ -575,7 +575,7 @@
       log = optarg;
       break;
     case 'm':
-      if (1 != sscanf(optarg, "%ud", &mem_limit)) {
+      if (1 != sscanf(optarg, "%u", &mem_limit)) {
        printf(_("You must pass a number to the '%s' option.\n"),
               "-m");
        return -1;

Modified: doodle/src/doodle/grow.c
===================================================================
--- doodle/src/doodle/grow.c    2010-01-29 19:21:41 UTC (rev 10172)
+++ doodle/src/doodle/grow.c    2010-01-29 19:24:16 UTC (rev 10173)
@@ -1,6 +1,6 @@
 /*
      This file is part of doodle.
-     (C) 2004 Christian Grothoff (and other contributing authors)
+     (C) 2004, 2010 Christian Grothoff (and other contributing authors)
 
      doodle is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -98,7 +98,8 @@
   if (INT_MAX / elementSize <= newCount) {
     fprintf(stderr,
            _("FATAL: can not allocate %u * %d elements (number too large) at 
%s:%d.\n"),
-           elementSize, newCount, filename, linenumber);
+           (unsigned int) elementSize,
+           (int) newCount, filename, linenumber);
     abort();
   }
   size = newCount * elementSize;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]