@@ -15,7 +15,7 @@
typedef struct IvshmemClientArgs {
bool verbose;
- char *unix_sock_path;
+ const char *unix_sock_path;
} IvshmemClientArgs;
/* show usage and exit with given error code */
@@ -129,7 +129,7 @@ handle_stdin_command(IvshmemClient *client)
/* listen on stdin (command line), on unix socket (notifications of new
* and dead peers), and on eventfd (IRQ request) */
-int
+static int
poll_events(IvshmemClient *client)
{
fd_set fds;
@@ -172,7 +172,7 @@ poll_events(IvshmemClient *client)
}
/* callback when we receive a notification (just display it) */
-void
+static void
notification_cb(const IvshmemClient *client, const IvshmemClientPeer *peer,
unsigned vect, void *arg)
{
@@ -22,9 +22,9 @@
typedef struct IvshmemServerArgs {
bool verbose;
bool foreground;
- char *pid_file;
- char *unix_socket_path;
- char *shm_path;
+ const char *pid_file;
+ const char *unix_socket_path;
+ const char *shm_path;
size_t shm_size;
unsigned n_vectors;
} IvshmemServerArgs;
@@ -138,7 +138,7 @@ parse_args(IvshmemServerArgs *args, int argc, char *argv[])
/* wait for events on listening server unix socket and connected client
* sockets */
-int
+static int
poll_events(IvshmemServer *server)
{
fd_set fds;
Signed-off-by: David Marchand <david.marchand@6wind.com> --- contrib/ivshmem-client/main.c | 6 +++--- contrib/ivshmem-server/main.c | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-)