From: Pierre Habouzit Date: Mon, 8 Jan 2007 07:24:58 +0000 (+0100) Subject: change guards. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=fe76e81ddfdc066e5b20c2f02cbcaf70fb4f0cd2;p=apps%2Fpfixtools.git change guards. minor updates. Signed-off-by: Pierre Habouzit --- diff --git a/buffer.h b/buffer.h index 87c0ad2..6c546d9 100644 --- a/buffer.h +++ b/buffer.h @@ -33,8 +33,8 @@ * Copyright © 2006 Pierre Habouzit */ -#ifndef MUTT_LIB_LIB_BUFFER_H -#define MUTT_LIB_LIB_BUFFER_H +#ifndef POSTLICYD_BUFFER_H +#define POSTLICYD_BUFFER_H #include "mem.h" #include "str.h" @@ -102,4 +102,4 @@ static inline void buffer_addch(buffer_t *buf, int c) { void buffer_consume(buffer_t *buf, ssize_t len); -#endif /* MUTT_LIB_LIB_BUFFER_H */ +#endif /* POSTLICYD_BUFFER_H */ diff --git a/mem.h b/mem.h index 4d9797e..cc171a7 100644 --- a/mem.h +++ b/mem.h @@ -33,8 +33,8 @@ * Copyright © 2006 Pierre Habouzit */ -#ifndef MUTT_LIB_LIB_MEM_H -#define MUTT_LIB_LIB_MEM_H +#ifndef POSTLICYD_MEM_H +#define POSTLICYD_MEM_H #include #include @@ -131,4 +131,4 @@ static inline void *xmemdupstr(const void *src, ssize_t len) { } \ } -#endif /* MUTT_LIB_LIB_MEM_H */ +#endif /* POSTLICYD_MEM_H */ diff --git a/policy.c b/policy.c index b814888..fcc0020 100644 --- a/policy.c +++ b/policy.c @@ -38,11 +38,13 @@ policy_request *pcyrq_init(policy_request *rq) { p_clear(rq, 1); - buffer_init(&rq->buf); + buffer_init(&rq->ibuf); + buffer_init(&rq->obuf); return rq; } void policy_wipe(policy_request *rq) { - buffer_wipe(&rq->buf); + buffer_wipe(&rq->ibuf); + buffer_wipe(&rq->obuf); } diff --git a/policy.h b/policy.h index 1ebaba1..1ac3c98 100644 --- a/policy.h +++ b/policy.h @@ -78,12 +78,13 @@ typedef struct policy_request { const char *encryption_keysize; const char *etrn_domain; - buffer_t buf; + ssize_t rqsize; + buffer_t ibuf; + buffer_t obuf; } policy_request; policy_request *pcyrq_init(policy_request *rq); void pcyrq_wipe(policy_request *rq); - DO_NEW(policy_request, pcyrq); DO_DELETE(policy_request, pcyrq); diff --git a/str.h b/str.h index e5e9782..d51b603 100644 --- a/str.h +++ b/str.h @@ -33,8 +33,8 @@ * Copyright © 2006 Pierre Habouzit */ -#ifndef MUTT_LIB_LIB_STR_H -#define MUTT_LIB_LIB_STR_H +#ifndef POSTLICYD_STR_H +#define POSTLICYD_STR_H #include "mem.h" @@ -364,4 +364,4 @@ m_stristr(const char *haystack, const char *needle) { } /*@}*/ -#endif /* MUTT_LIB_LIB_STR_H */ +#endif /* POSTLICYD_STR_H */