diff cli-main.c @ 1460:58a74cb829b8

Pointer parameter could be declared as pointing to const (callback)
author Francois Perrad <francois.perrad@gadz.org>
date Sat, 19 Aug 2017 22:39:53 +0200
parents 2c9dac2d6707
children f7a53832501d
line wrap: on
line diff
--- a/cli-main.c	Sat Aug 19 17:16:13 2017 +0200
+++ b/cli-main.c	Sat Aug 19 22:39:53 2017 +0200
@@ -142,7 +142,7 @@
 	fflush(stderr);
 }
 
-static void exec_proxy_cmd(void *user_data_cmd) {
+static void exec_proxy_cmd(const void *user_data_cmd) {
 	const char *cmd = user_data_cmd;
 	char *usershell;