--- include/lutil.h 2009/08/18 21:48:15 1.76 +++ include/lutil.h 2010/04/13 20:17:49 1.78 @@ -1,7 +1,7 @@ -/* $OpenLDAP: pkg/ldap/include/lutil.h,v 1.75 2009/01/21 23:40:18 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/include/lutil.h,v 1.77 2009/11/15 17:26:53 ando Exp $ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2009 The OpenLDAP Foundation. + * Copyright 1998-2010 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -194,6 +194,8 @@ lutil_strncopy LDAP_P(( char *dst, const LDAP_LUTIL_F( char* ) lutil_memcopy LDAP_P(( char *dst, const char *src, size_t n )); +#define lutil_strbvcopy(a, bv) lutil_memcopy((a),(bv)->bv_val,(bv)->bv_len) + struct tm; /* use this macro to statically allocate buffer for lutil_gentime */