static inline void *
mem_maybedup(isc_mem_t *mctx, void *source, size_t length) {
- void *new;
+ void *copy;
if (mctx == NULL)
return (source);
- new = isc_mem_allocate(mctx, length);
- if (new != NULL)
- memmove(new, source, length);
+ copy = isc_mem_allocate(mctx, length);
+ if (copy != NULL)
+ memmove(copy, source, length);
- return (new);
+ return (copy);
}
static const char hexdigits[] = "0123456789abcdef";
static int
hexvalue(char value) {
- char *s;
+ const char *s;
unsigned char c;
c = (unsigned char)value;
static int
decvalue(char value) {
- char *s;
+ const char *s;
/*
* isascii() is valid for full range of int values, no need to
*/
static isc_result_t
byte_atob(int c, isc_buffer_t *target, struct state *state) {
- char *s;
+ const char *s;
if (c == 'z') {
if (bcount != 0)
return(DNS_R_SYNTAX);