~andreserl/ubuntu/lucid/bind9/bind9-apport-533601

« back to all changes in this revision

Viewing changes to bin/tests/db_test.c

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2006-01-05 12:29:28 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060105122928-oih7ttkkmpb90q8q
Tags: 1:9.3.2-1
* New upstream
* use lsb-base for start/stop messages in init.d.
* switch to debhelper 4

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
 
2
 * Copyright (C) 2004, 2005  Internet Systems Consortium, Inc. ("ISC")
3
3
 * Copyright (C) 1999-2001  Internet Software Consortium.
4
4
 *
5
5
 * Permission to use, copy, modify, and distribute this software for any
15
15
 * PERFORMANCE OF THIS SOFTWARE.
16
16
 */
17
17
 
18
 
/* $Id: db_test.c,v 1.56.12.4 2004/03/08 04:04:25 marka Exp $ */
 
18
/* $Id: db_test.c,v 1.56.12.6 2005/03/17 03:58:27 marka Exp $ */
19
19
 
20
20
/*
21
21
 * Principal Author: Bob Halley
76
76
                message = "";
77
77
        }
78
78
        len = strlen(message);
79
 
        printf("%s%sresult %08x: %s\n", message, (len == 0) ? "" : " ", result,
80
 
               isc_result_totext(result));
 
79
        printf("%s%sresult %08x: %s\n", message, (len == 0U) ? "" : " ",
 
80
               result, isc_result_totext(result));
81
81
}
82
82
 
83
83
static void
477
477
                        continue;
478
478
                }
479
479
                len = strlen(s);
480
 
                if (len > 0 && s[len - 1] == '\n') {
 
480
                if (len > 0U && s[len - 1] == '\n') {
481
481
                        s[len - 1] = '\0';
482
482
                        len--;
483
483
                }