summaryrefslogtreecommitdiff
path: root/src/buffer.c
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2021-11-14 04:14:25 +0100
committerLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2021-11-14 04:14:44 +0100
commitd933ed4dd56f38285f4aef61b487307a497574c5 (patch)
tree9f058036fe6ef0aa4fc99d5f2eb84d0523ec1431 /src/buffer.c
parentfa3d1b5dfe4f93953c300595e8fd81abd76670ee (diff)
downloadwlclock-d933ed4dd56f38285f4aef61b487307a497574c5.tar.gz
wlclock-d933ed4dd56f38285f4aef61b487307a497574c5.tar.bz2
Use global context
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 83f48ad..2fa34bb 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -70,7 +70,7 @@ static bool get_shm_fd (int *fd, size_t size)
*/
if ( errno != EEXIST )
{
- clocklog(NULL, 0, "ERROR: shm_open: %s\n", strerror(errno));
+ clocklog(0, "ERROR: shm_open: %s\n", strerror(errno));
return false;
}
}
@@ -121,7 +121,7 @@ static bool create_buffer (struct wl_shm *shm, struct Wlclock_buffer *buffer,
fd, 0)) )
{
close(fd);
- clocklog(NULL, 0, "ERROR: mmap: %s\n", strerror(errno));
+ clocklog(0, "ERROR: mmap: %s\n", strerror(errno));
return false;
}
@@ -165,7 +165,7 @@ bool next_buffer (struct Wlclock_buffer **buffer, struct wl_shm *shm,
*buffer = &buffers[1];
else
{
- clocklog(NULL, 0, "ERROR: All buffers are busy.\n");
+ clocklog(0, "ERROR: All buffers are busy.\n");
*buffer = NULL;
return false;
}