summaryrefslogtreecommitdiff
path: root/src/buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buf.c')
-rw-r--r--src/buf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buf.c b/src/buf.c
index f2410f0..a1c917b 100644
--- a/src/buf.c
+++ b/src/buf.c
@@ -197,7 +197,7 @@ struct Buf *buf_m4_undefine (struct Buf *buf, const char* def)
/* create buf with 0 elements, each of size elem_size. */
void buf_init (struct Buf *buf, size_t elem_size)
{
- buf->elts = (void *) 0;
+ buf->elts = NULL;
buf->nelts = 0;
buf->elt_size = elem_size;
buf->nmax = 0;
@@ -208,7 +208,7 @@ void buf_destroy (struct Buf *buf)
{
if (buf && buf->elts)
flex_free (buf->elts);
- buf->elts = (void *) 0;
+ buf->elts = NULL;
}