util_safealign.h revision 2fa8d6655ac37f9bdeb34420000052d921f4a543
/*
SSSD
Authors:
Simo Sorce <ssorce@redhat.com>
Copyright (C) Red Hat, Inc 2007
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* CAUTION:
* This file is also used in sss_client (pam, nss). Therefore it has to be
* minimalist and cannot include DEBUG macros or header file util.h.
*/
#ifndef _UTIL_SAFEALIGN_H
#define _UTIL_SAFEALIGN_H
#include <string.h>
static inline void
{
if (counter) {
*counter += n;
}
}
} while(0)
} while(0)
} while(0)
} while(0)
/* Do not use these aliases in new code. Use the macros above instead. */
#define SAFEALIGN_SET_VALUE SAFEALIGN_VAR2BUF
#endif /* _UTIL_SAFEALIGN_H */