summaryrefslogtreecommitdiff
path: root/chooser/chooser.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-05-14 10:33:50 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-05-16 14:50:19 -0700
commitf29b73ba549fbdcbe1361c016fc40cc424c32e9b (patch)
treeaf9fd533f9465b3552f035425f38708e0a6b57dc /chooser/chooser.c
parent6cb6fcd3a95bc125615d4a6736712bcc45ad7685 (diff)
Stop casting free() arguments to (char *)
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Diffstat (limited to 'chooser/chooser.c')
-rw-r--r--chooser/chooser.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/chooser/chooser.c b/chooser/chooser.c
index 01201b7..6033fb4 100644
--- a/chooser/chooser.c
+++ b/chooser/chooser.c
@@ -312,7 +312,7 @@ RebuildTable (int size)
qsort (newTable, size, sizeof (char *), HostnameCompare);
}
XawListChange (list, newTable, size, 0, TRUE);
- free ((char *) NameTable);
+ free (NameTable);
NameTable = newTable;
NameTableSize = size;
}
@@ -388,8 +388,8 @@ AddHostname (ARRAY8Ptr hostname, ARRAY8Ptr status, struct sockaddr *addr, int wi
}
if (!XdmcpAllocARRAY8 (&new->hostaddr, hostAddr.length))
{
- free ((char *) new->fullname);
- free ((char *) new);
+ free (new->fullname);
+ free (new);
return 0;
}
memmove( new->hostaddr.data, hostAddr.data, hostAddr.length);
@@ -436,8 +436,8 @@ DisposeHostname (HostName *host)
XdmcpDisposeARRAY8 (&host->hostname);
XdmcpDisposeARRAY8 (&host->hostaddr);
XdmcpDisposeARRAY8 (&host->status);
- free ((char *) host->fullname);
- free ((char *) host);
+ free (host->fullname);
+ free (host);
}
#if 0
@@ -551,7 +551,7 @@ RegisterHostaddr (struct sockaddr *addr, int len, xdmOpCode type)
host->addr = (struct sockaddr *) malloc (len);
if (!host->addr)
{
- free ((char *) host);
+ free (host);
return;
}
memmove( (char *) host->addr, (char *) addr, len);