value.c revision 499b34cea04a46823d003d4c0520c8b03e8513cb
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * Copyright (C) 1996-2001 Internet Software Consortium.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Permission to use, copy, modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
75b8de87879ad017c9cd2ffc328e5d2391d16e99Evan Hunt * INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
e11a0c114cdaf8f7e7832e9f1a011138248093a6Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
ecfedec0e0b7ae3dc3cbbf9b59f63732146c1387Mark Andrews * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews/* $Id: value.c,v 1.11 2001/01/09 22:00:15 bwelling Exp $ */
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrews/* Principal Author: Ted Lemon */
e939674d53a127ddeeaf4b41fd72933f0b493308Mark Andrewsomapi_value_reference(omapi_value_t **r, omapi_value_t *h) {
677f507de7c546c187c1505c48bc7b440545485cMark Andrews if (--((*h)->refcnt) <= 0) {
*h = NULL;
return (result);
return (result);
return (result);
return (result);
return (result);
return (result);
return (result);
value);
return (result);
return (result);
return (result);
* is valid. See omapi.h.