]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add /* NOTREACHED */ comments
authorEvan Hunt <each@isc.org>
Sat, 3 Oct 2009 18:03:54 +0000 (18:03 +0000)
committerEvan Hunt <each@isc.org>
Sat, 3 Oct 2009 18:03:54 +0000 (18:03 +0000)
bin/dig/dig.c
bin/dnssec/dnssec-keyfromlabel.c
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssectool.c
lib/dns/rbtdb.c

index 884cc95388ab0b9f7e7296d3bb4c70e7df55948f..9783024bc82530ecd0862658f3ba2703e488fd65 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dig.c,v 1.232 2009/09/29 15:06:05 fdupont Exp $ */
+/* $Id: dig.c,v 1.233 2009/10/03 18:03:53 each Exp $ */
 
 /*! \file */
 
@@ -1155,6 +1155,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
                                have_ipv6 = ISC_FALSE;
                        } else {
                                fatal("can't find IPv4 networking");
+                               /* NOTREACHED */
                                return (ISC_FALSE);
                        }
                        break;
@@ -1164,6 +1165,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
                                have_ipv4 = ISC_FALSE;
                        } else {
                                fatal("can't find IPv6 networking");
+                               /* NOTREACHED */
                                return (ISC_FALSE);
                        }
                        break;
@@ -1387,6 +1389,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
                fprintf(stderr, "Invalid option: -%s\n", option);
                usage();
        }
+       /* NOTREACHED */
        return (ISC_FALSE);
 }
 
index 370b02a5e94be739253ba869c790057e9b91f69f..f0e41d11016708cf16c287b8dbdd71a23a5127e9 100644 (file)
@@ -14,7 +14,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssec-keyfromlabel.c,v 1.16 2009/09/29 15:06:06 fdupont Exp $ */
+/* $Id: dnssec-keyfromlabel.c,v 1.17 2009/10/03 18:03:53 each Exp $ */
 
 /*! \file */
 
@@ -384,6 +384,7 @@ main(int argc, char **argv) {
                alg_format(alg, algstr, sizeof(algstr));
                fatal("failed to get key %s/%s: %s\n",
                      namestr, algstr, isc_result_totext(ret));
+               /* NOTREACHED */
                exit(-1);
        }
 
index 86d8bbdee139517106e27a861f92db1ba644cc6d..0c5d497fce34f1007cb89539a228ad71a52427fc 100644 (file)
@@ -29,7 +29,7 @@
  * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssec-keygen.c,v 1.97 2009/09/29 15:06:06 fdupont Exp $ */
+/* $Id: dnssec-keygen.c,v 1.98 2009/10/03 18:03:53 each Exp $ */
 
 /*! \file */
 
@@ -668,6 +668,7 @@ main(int argc, char **argv) {
                        alg_format(alg, algstr, sizeof(algstr));
                        fatal("failed to generate key %s/%s: %s\n",
                              namestr, algstr, isc_result_totext(ret));
+                       /* NOTREACHED */
                        exit(-1);
                }
 
index cfa01f7811652b18170a667546658e6dc7b23b0a..5532e1a34e840fecbf160b558d3a538d84066393 100644 (file)
@@ -29,7 +29,7 @@
  * IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssec-signzone.c,v 1.239 2009/09/29 22:17:34 each Exp $ */
+/* $Id: dnssec-signzone.c,v 1.240 2009/10/03 18:03:54 each Exp $ */
 
 /*! \file */
 
@@ -372,6 +372,7 @@ expecttofindkey(dns_name_t *name) {
        dns_name_format(name, namestr, sizeof(namestr));
        fatal("failure looking for '%s DNSKEY' in database: %s",
              namestr, isc_result_totext(result));
+       /* NOTREACHED */
        return (ISC_FALSE); /* removes a warning */
 }
 
index 62f3da33ba6d830510a663a3f2e2abb700f5be24..22111ef529308fe4c8449abc2cb5952b31995506 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: dnssectool.c,v 1.53 2009/09/03 00:12:23 each Exp $ */
+/* $Id: dnssectool.c,v 1.54 2009/10/03 18:03:54 each Exp $ */
 
 /*! \file */
 
@@ -282,6 +282,7 @@ time_units(isc_stdtime_t offset, char *suffix, const char *str) {
                    default:
                        fatal("time value %s is invalid", str);
                }
+               /* NOTREACHED */
                break;
            case 'W': case 'w':
                return (offset * (7 * 24 * 3600));
@@ -294,6 +295,7 @@ time_units(isc_stdtime_t offset, char *suffix, const char *str) {
            default:
                fatal("time value %s is invalid", str);
        }
+       /* NOTREACHED */
        return(0); /* silence compiler warning */
 }
 
index 0bbf3d9c979af08b43cd24bc11f591293726d4b2..4d08629a8ed4025252fc524b48689591b8f4d287 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: rbtdb.c,v 1.278 2009/09/01 00:22:26 jinmei Exp $ */
+/* $Id: rbtdb.c,v 1.279 2009/10/03 18:03:54 each Exp $ */
 
 /*! \file */
 
@@ -3916,6 +3916,7 @@ zone_findzonecut(dns_db_t *db, dns_name_t *name, unsigned int options,
 
        FATAL_ERROR(__FILE__, __LINE__, "zone_findzonecut() called!");
 
+       /* NOTREACHED */
        return (ISC_R_NOTIMPLEMENTED);
 }