summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-25 12:12:14 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-25 12:12:14 -0700
commitac59cccf8bc1ae3d41e0608f131b5eb888f9362b (patch)
treec472c99e8e2f2e99f663c356312b477386eecb73
parentcb8c4d800cc237c9ecaebd7af91ff26a311ac310 (diff)
Don't pass a static string to TRANS(GetReopenInfo)
It never reads the value passed in, just overwrites the pointer, and gcc -Wwrite-strings complains about assigning a constant string to a non-const char*. 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 afe5671..afacf26 100644
--- a/os/xfstrans.c
+++ b/os/xfstrans.c
@@ -35,7 +35,7 @@
OldListenRec *
TRANS(GetInetdListenInfo) (int fd)
{
- char *port = "0";
+ char *port = NULL;
XtransConnInfo inetdCI;
OldListenRec *old_listen;
int portnum;