summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-08-19 22:39:53 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-08-19 22:39:53 +0200
commit598056d1686127285c389cacbdd20707c350d05a (patch)
treed821ca44d56c707bd3e6fe35f5cb58ff6eb1ccda /dbutil.c
parent89e64c631ec8dee41ec4de888548d36887b6ec98 (diff)
Pointer parameter could be declared as pointing to const (callback)
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbutil.c b/dbutil.c
index 830e8d2..4467162 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -241,7 +241,7 @@ int connect_unix(const char* path) {
* it will be run after the child has fork()ed, and is passed exec_data.
* If ret_errfd == NULL then stderr will not be captured.
* ret_pid can be passed as NULL to discard the pid. */
-int spawn_command(void(*exec_fn)(void *user_data), void *exec_data,
+int spawn_command(void(*exec_fn)(const void *user_data), const void *exec_data,
int *ret_writefd, int *ret_readfd, int *ret_errfd, pid_t *ret_pid) {
int infds[2];
int outfds[2];