Commit 50eab6c2 authored by Mark Andrews's avatar Mark Andrews
Browse files

silence compiler warnings

parent 1d9958c6
......@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-dsfromkey.c,v 1.11 2009/07/19 23:47:55 tbox Exp $ */
/* $Id: dnssec-dsfromkey.c,v 1.12 2009/08/13 04:13:58 marka Exp $ */
/*! \file */
......@@ -367,7 +367,7 @@ main(int argc, char **argv) {
/* fall through */
case 'K':
dir = isc_commandline_argument;
if (strlen(dir) == 0)
if (strlen(dir) == 0U)
fatal("directory must be non-empty string");
break;
case 'f':
......@@ -375,7 +375,7 @@ main(int argc, char **argv) {
break;
case 'l':
lookaside = isc_commandline_argument;
if (strlen(lookaside) == 0)
if (strlen(lookaside) == 0U)
fatal("lookaside must be a non-empty string");
break;
case 's':
......
......@@ -29,7 +29,7 @@
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssec-signzone.c,v 1.225 2009/07/21 03:27:38 marka Exp $ */
/* $Id: dnssec-signzone.c,v 1.226 2009/08/13 04:13:58 marka Exp $ */
/*! \file */
......@@ -3203,7 +3203,7 @@ main(int argc, char *argv[]) {
case 'd':
dsdir = isc_commandline_argument;
if (strlen(dsdir) == 0)
if (strlen(dsdir) == 0U)
fatal("DS directory must be non-empty string");
break;
......
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: dnssectool.c,v 1.49 2009/07/19 23:47:55 tbox Exp $ */
/* $Id: dnssectool.c,v 1.50 2009/08/13 04:13:58 marka Exp $ */
/*! \file */
......@@ -293,7 +293,7 @@ strtotime(const char *str, isc_int64_t now, isc_int64_t base) {
const char *orig = str;
char *endp;
if (strlen(str) == 1 && (str[0] == '0' || str[0] == '-'))
if ((str[0] == '0' || str[0] == '-') && str[1] == '\0')
return ((isc_stdtime_t) 0);
if (strncmp(str, "now", 3) == 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment