diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-09 16:23:26 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-12-09 16:23:26 +0100 |
commit | 3e46366fd3b63b8551ae66187fa0d75c74fa29f8 (patch) | |
tree | 50d03076a62ebdcd5559ca476fc89b5360d14fee /nslcd-common.h | |
parent | 534c504364428682deaa2704c3f9ae4cf7f6ab39 (diff) |
get rid of some old code and rename ldap-nss to myldap since there is no more NSS-related code in there
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@489 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd-common.h')
-rw-r--r-- | nslcd-common.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/nslcd-common.h b/nslcd-common.h index ca49b93..9cc101a 100644 --- a/nslcd-common.h +++ b/nslcd-common.h @@ -99,17 +99,7 @@ static void debug_dump(const void *ptr,size_t size) ERROR_OUT_WRITEERROR(fp); \ } -#define WRITE_STRINGLIST_NUM(fp,arr,num) \ - /* write number of strings */ \ - DEBUG_PRINT("WRITE_STRLST: var="__STRING(arr)" num=%d",(int)num); \ - WRITE_INT32(fp,num); \ - /* write strings */ \ - for (tmp2int32=0;tmp2int32<(num);tmp2int32++) \ - { \ - WRITE_STRING(fp,(arr)[tmp2int32]); \ - } - -#define WRITE_STRINGLIST_NULLTERM(fp,arr) \ +#define WRITE_STRINGLIST(fp,arr) \ /* first determin length of array */ \ for (tmp3int32=0;(arr)[tmp3int32]!=NULL;tmp3int32++) \ /*noting*/ ; \ @@ -193,15 +183,6 @@ static void debug_dump(const void *ptr,size_t size) BUF_CHECK(fp,tmp2int32); \ BUF_SKIP(tmp2int32); -/* move BUF_CUR foreward so that it is aligned to the specified - type width */ -#define BUF_ALIGN(fp,type) \ - /* figure out number of bytes to skip foreward */ \ - tmp2int32=(sizeof(type)-((BUF_CUR-(char *)NULL)%sizeof(type)))%sizeof(type); \ - /* check and skip */ \ - BUF_CHECK(fp,tmp2int32); \ - BUF_SKIP(tmp2int32); - /* allocate a piece of the buffer to store an array in */ #define BUF_ALLOC(fp,ptr,type,num) \ /* align to the specified type width */ \ |