From f5fb7c713ea443469406a691e60a6f4567a4cb75 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Jan 2022 00:32:29 +0100 Subject: Fix const warnings Now that the RPCs have const, this forces us cleaning our const-meant functions. --- console-client/current-vcs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'console-client/current-vcs.c') diff --git a/console-client/current-vcs.c b/console-client/current-vcs.c index fb053799..ce90de4f 100644 --- a/console-client/current-vcs.c +++ b/console-client/current-vcs.c @@ -107,9 +107,10 @@ vcs_read (struct protid *user, char **data, /* Making a link to set current vcs. Relative values perform relative switches. */ static error_t -vcs_mksymlink (struct iouser *user, struct node *np, char *name) +vcs_mksymlink (struct iouser *user, struct node *np, const char *name) { - char *c, *d; + const char *c; + char *d; int vt, delta = 0; c = strrchr (name, '/'); -- cgit v1.2.3