mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Add /* NOTREACHED */ comments
This commit is contained in:
parent
4256ffffb9
commit
1210799345
@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@ -1155,6 +1155,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
have_ipv6 = ISC_FALSE;
|
have_ipv6 = ISC_FALSE;
|
||||||
} else {
|
} else {
|
||||||
fatal("can't find IPv4 networking");
|
fatal("can't find IPv4 networking");
|
||||||
|
/* NOTREACHED */
|
||||||
return (ISC_FALSE);
|
return (ISC_FALSE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1164,6 +1165,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
have_ipv4 = ISC_FALSE;
|
have_ipv4 = ISC_FALSE;
|
||||||
} else {
|
} else {
|
||||||
fatal("can't find IPv6 networking");
|
fatal("can't find IPv6 networking");
|
||||||
|
/* NOTREACHED */
|
||||||
return (ISC_FALSE);
|
return (ISC_FALSE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -1387,6 +1389,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
|
|||||||
fprintf(stderr, "Invalid option: -%s\n", option);
|
fprintf(stderr, "Invalid option: -%s\n", option);
|
||||||
usage();
|
usage();
|
||||||
}
|
}
|
||||||
|
/* NOTREACHED */
|
||||||
return (ISC_FALSE);
|
return (ISC_FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@ -384,6 +384,7 @@ main(int argc, char **argv) {
|
|||||||
alg_format(alg, algstr, sizeof(algstr));
|
alg_format(alg, algstr, sizeof(algstr));
|
||||||
fatal("failed to get key %s/%s: %s\n",
|
fatal("failed to get key %s/%s: %s\n",
|
||||||
namestr, algstr, isc_result_totext(ret));
|
namestr, algstr, isc_result_totext(ret));
|
||||||
|
/* NOTREACHED */
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@ -668,6 +668,7 @@ main(int argc, char **argv) {
|
|||||||
alg_format(alg, algstr, sizeof(algstr));
|
alg_format(alg, algstr, sizeof(algstr));
|
||||||
fatal("failed to generate key %s/%s: %s\n",
|
fatal("failed to generate key %s/%s: %s\n",
|
||||||
namestr, algstr, isc_result_totext(ret));
|
namestr, algstr, isc_result_totext(ret));
|
||||||
|
/* NOTREACHED */
|
||||||
exit(-1);
|
exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
* IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@ -372,6 +372,7 @@ expecttofindkey(dns_name_t *name) {
|
|||||||
dns_name_format(name, namestr, sizeof(namestr));
|
dns_name_format(name, namestr, sizeof(namestr));
|
||||||
fatal("failure looking for '%s DNSKEY' in database: %s",
|
fatal("failure looking for '%s DNSKEY' in database: %s",
|
||||||
namestr, isc_result_totext(result));
|
namestr, isc_result_totext(result));
|
||||||
|
/* NOTREACHED */
|
||||||
return (ISC_FALSE); /* removes a warning */
|
return (ISC_FALSE); /* removes a warning */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@ -282,6 +282,7 @@ time_units(isc_stdtime_t offset, char *suffix, const char *str) {
|
|||||||
default:
|
default:
|
||||||
fatal("time value %s is invalid", str);
|
fatal("time value %s is invalid", str);
|
||||||
}
|
}
|
||||||
|
/* NOTREACHED */
|
||||||
break;
|
break;
|
||||||
case 'W': case 'w':
|
case 'W': case 'w':
|
||||||
return (offset * (7 * 24 * 3600));
|
return (offset * (7 * 24 * 3600));
|
||||||
@ -294,6 +295,7 @@ time_units(isc_stdtime_t offset, char *suffix, const char *str) {
|
|||||||
default:
|
default:
|
||||||
fatal("time value %s is invalid", str);
|
fatal("time value %s is invalid", str);
|
||||||
}
|
}
|
||||||
|
/* NOTREACHED */
|
||||||
return(0); /* silence compiler warning */
|
return(0); /* silence compiler warning */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \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!");
|
FATAL_ERROR(__FILE__, __LINE__, "zone_findzonecut() called!");
|
||||||
|
|
||||||
|
/* NOTREACHED */
|
||||||
return (ISC_R_NOTIMPLEMENTED);
|
return (ISC_R_NOTIMPLEMENTED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user