diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 22:39:53 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 22:39:53 +0200 |
commit | 598056d1686127285c389cacbdd20707c350d05a (patch) | |
tree | d821ca44d56c707bd3e6fe35f5cb58ff6eb1ccda /dbutil.c | |
parent | 89e64c631ec8dee41ec4de888548d36887b6ec98 (diff) |
Pointer parameter could be declared as pointing to const (callback)
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |