[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bacula-commits
Subject:    [Bacula-commits] SF.net SVN: bacula:[7525] trunk/bacula
From:       kerns () users ! sourceforge ! net
Date:       2008-08-29 9:16:12
Message-ID: E1KZ05U-0005Ie-7a () 3kljzd1 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 7525
          http://bacula.svn.sourceforge.net/bacula/?rev=7525&view=rev
Author:   kerns
Date:     2008-08-29 09:16:11 +0000 (Fri, 29 Aug 2008)

Log Message:
-----------
Fix compile warning in new dbcheck port code.

Modified Paths:
--------------
    trunk/bacula/src/tools/dbcheck.c
    trunk/bacula/technotes-2.5

Modified: trunk/bacula/src/tools/dbcheck.c
===================================================================
--- trunk/bacula/src/tools/dbcheck.c	2008-08-29 02:42:56 UTC (rev 7524)
+++ trunk/bacula/src/tools/dbcheck.c	2008-08-29 09:16:11 UTC (rev 7525)
@@ -262,11 +262,12 @@
          user = argv[2];
          password = argv[3];
          dbhost = argv[4];
+         errno = 0;
          dbport = strtol(argv[5], &endptr, 10);
          if (*endptr != '\0') {
             Pmsg0(0, _("Database port must be a numeric value.\n"));
             exit(1);
-         } else if (dbport == LONG_MIN || dbport == LONG_MAX) {
+         } else if (errno == ERANGE) {
             Pmsg0(0, _("Database port must be a int value.\n"));
             exit(1);
          }

Modified: trunk/bacula/technotes-2.5
===================================================================
--- trunk/bacula/technotes-2.5	2008-08-29 02:42:56 UTC (rev 7524)
+++ trunk/bacula/technotes-2.5	2008-08-29 09:16:11 UTC (rev 7525)
@@ -33,6 +33,7 @@
 
 General:
 29Aug08
+kes  Fix compile warning in new dbcheck port code.
 kes  Fix migration code broken by previous virtual backup fix.
 28Aug08
 kes  Fix problem of Virtual backup not writing a sequential FileIndex.


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-commits mailing list
Bacula-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic