[PATCH:xdm 4/5] Stop casting return values of malloc and friends

Mark Kettenis mark.kettenis at xs4all.nl
Sat May 14 12:13:57 PDT 2011


> From: Alan Coopersmith <alan.coopersmith at oracle.com>
> Date: Sat, 14 May 2011 11:01:32 -0700
> 
> It's not needed on modern mallocs that return void *, and can hide
> missing prototype errors that cause the compiler to assume int is
> returned (a bad thing to assume in 64-bit builds).
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>

Reviewed-by: Mark Kettenis <kettenis at openbsd.org>

> ---
>  chooser/chooser.c |    8 ++++----
>  xdm/access.c      |    4 ++--
>  xdm/auth.c        |    7 +++----
>  xdm/choose.c      |    4 ++--
>  xdm/dpylist.c     |    2 +-
>  xdm/file.c        |    7 +++----
>  xdm/krb5auth.c    |    7 +++----
>  xdm/mitauth.c     |    6 +++---
>  xdm/policy.c      |    2 +-
>  xdm/protodpy.c    |    4 ++--
>  xdm/resource.c    |    2 +-
>  xdm/rpcauth.c     |    6 +++---
>  xdm/server.c      |    2 +-
>  xdm/session.c     |    2 +-
>  xdm/util.c        |    8 ++++----
>  xdm/xdmauth.c     |    8 ++++----
>  xdm/xdmcp.c       |    4 ++--
>  17 files changed, 40 insertions(+), 43 deletions(-)


More information about the xorg-devel mailing list