summaryrefslogtreecommitdiff
path: root/src/buf.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville@mykolab.com>2015-12-05 18:00:12 -0500
committerWill Estes <westes575@gmail.com>2015-12-05 18:50:53 -0500
commite0877888da128c7a1fcb24f5a7b5959c54631e18 (patch)
tree01840925f9868764a6e15c6bb3a4b281127f42d9 /src/buf.c
parent3a1d84cfc0988a3dbdba7a440571e987cb68973a (diff)
Use NULL rather than (type *) 0.
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;
}