From 759bbd43f0fdc9a96ba1676d7830164bc9954be2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 9 Aug 2013 00:06:01 -0700 Subject: Constify previous_id argument to SmcOpenConnection Clears gcc warning of: sm_client.c: In function 'SmcOpenConnection': sm_client.c:199:13: warning: assignment discards 'const' qualifier from pointer target type [enabled by default] Signed-off-by: Alan Coopersmith --- src/sm_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sm_client.c b/src/sm_client.c index 3dd700e..ef1160b 100644 --- a/src/sm_client.c +++ b/src/sm_client.c @@ -52,7 +52,7 @@ SmcConn SmcOpenConnection(char *networkIdsList, SmPointer context, int xsmpMajorRev, int xsmpMinorRev, unsigned long mask, SmcCallbacks *callbacks, - char *previousId, char **clientIdRet, + const char *previousId, char **clientIdRet, int errorLength, char *errorStringRet) { SmcConn smcConn; -- cgit v1.2.3