summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-08-23 13:00:24 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2014-08-23 13:18:28 -0700
commit3d9bc5a3a8dd36188b0c09d536dcc3c0a8339c31 (patch)
tree2df6caebdd11a25f447eccd9b0225fe0f86913a5
parent4bc3e1f01864f09ce87b8eba9b1970ea3715375c (diff)
Add const to port variable passed to TRANS(ReopenCOTSServer)
Before this patch, gcc always warns: os/xfstrans.c: In function ‘_FontTransGetInetdListenInfo’: os/xfstrans.c:38:18: warning: initialization discards ‘const’ qualifier from pointer target type [enabled by default] char *port = "0"; ^ After this patch, with prior versons of libxtrans, gcc will warn about passing a const to TRANS(ReopenCOTSServer) where non-const is expected. With both this patch & the libxtrans const patches, there are no warnings. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--os/xfstrans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/xfstrans.c b/os/xfstrans.c
index bb1b12a..e147953 100644
--- a/os/xfstrans.c
+++ b/os/xfstrans.c
@@ -35,7 +35,7 @@
OldListenRec *
TRANS(GetInetdListenInfo) (int fd)
{
- char *port = "0";
+ const char *port = "0";
XtransConnInfo inetdCI;
OldListenRec *old_listen;
int portnum;