[PATCH 4/4] Misc coding style cleanup

Matt Turner mattst88 at gmail.com
Fri Jun 4 08:16:28 PDT 2010


On Wed, May 12, 2010 at 4:56 PM, Mikhail Gusarov
<dottedmag at dottedmag.net> wrote:
> *(a+b) instead of a[b], whitespace.
>
> Signed-off-by: Mikhail Gusarov <dottedmag at dottedmag.net>
> ---
>  dix/atom.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/dix/atom.c b/dix/atom.c
> index 7d04c68..88b40db 100644
> --- a/dix/atom.c
> +++ b/dix/atom.c
> @@ -145,8 +145,8 @@ MakeAtom(const char *string, unsigned len, Bool makeit)
>        *np = nd;
>        nd->left = nd->right = NULL;
>        nd->fingerPrint = fp;
> -       nd->a = (++lastAtom);
> -       *(nodeTable+lastAtom) = nd;
> +       nd->a = ++lastAtom;
> +       nodeTable[lastAtom] = nd;
>        return nd->a;
>     }
>     else
> @@ -194,7 +194,7 @@ FreeAtom(NodePtr patom)
>  void
>  FreeAllAtoms(void)
>  {
> -    if(atomRoot == NULL)
> +    if (atomRoot == NULL)
>        return;
>     FreeAtom(atomRoot);
>     atomRoot = NULL;
> @@ -208,7 +208,7 @@ InitAtoms(void)
>  {
>     FreeAllAtoms();
>     tableLength = InitialTableSize;
> -    nodeTable = malloc(InitialTableSize*sizeof(NodePtr));
> +    nodeTable = malloc(InitialTableSize * sizeof(NodePtr));
>     if (!nodeTable)
>        AtomError();
>     nodeTable[None] = NULL;
> --
> 1.7.1
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>

Reviewed-by: Matt Turner <mattst88 at gmail.com>


More information about the xorg-devel mailing list