null_10.c revision 6d12fdf96621801e80f3f4c2a8a569fe48766a20
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * Copyright (C) 1998, 1999, 2000 Internet Software Consortium.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * Permission to use, copy, modify, and distribute this software for any
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * purpose with or without fee is hereby granted, provided that the above
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * copyright notice and this permission notice appear in all copies.
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
1ccbfca64ae86ace521053773001cb995352f96fBob Halley * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
62837b832f6a9999976d607eb0a9125bbbbb138bBob Halley/* $Id: null_10.c,v 1.25 2000/06/01 18:26:23 tale Exp $ */
62837b832f6a9999976d607eb0a9125bbbbb138bBob Halley/* Reviewed: Thu Mar 16 13:57:50 PST 2000 by explorer */
62837b832f6a9999976d607eb0a9125bbbbb138bBob Halley return (mem_tobuffer(target, sr.base, sr.length));
1ccbfca64ae86ace521053773001cb995352f96fBob Halley return (mem_tobuffer(target, rdata->data, rdata->length));
62837b832f6a9999976d607eb0a9125bbbbb138bBob Halleystatic inline int
1ccbfca64ae86ace521053773001cb995352f96fBob Halley REQUIRE((null->data != NULL && null->length != 0) ||
1ccbfca64ae86ace521053773001cb995352f96fBob Halley return (mem_tobuffer(target, null->data, null->length));
1ccbfca64ae86ace521053773001cb995352f96fBob Halley null->data = mem_maybedup(mctx, r.base, r.length);
1ccbfca64ae86ace521053773001cb995352f96fBob Halleystatic inline void
48481c9b6e19501457bcbc2995555412f352b99fBob Halley#endif /* RDATA_GENERIC_NULL_10_C */