[PATCH] Fix some old comments

Alan Coopersmith alan.coopersmith at oracle.com
Thu Jul 21 21:04:42 PDT 2011


On 07/21/11 09:01 PM, Daniel Kurtz wrote:
> When all xfree() were converted to free() this comment got mangled.
> Just remove it.
> 
> Also fix some typos.
> 
> Signed-off-by: Daniel Kurtz <djkurtz at google.com>
> ---
>  hw/xfree86/parser/scan.c |    2 +-
>  os/connection.c          |    2 +-
>  os/log.c                 |    2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/hw/xfree86/parser/scan.c b/hw/xfree86/parser/scan.c
> index 1cff3bc..7be64b2 100644
> --- a/hw/xfree86/parser/scan.c
> +++ b/hw/xfree86/parser/scan.c
> @@ -936,7 +936,7 @@ xf86openConfigFile(const char *path, const char *cmdline, const char *projroot)
>   * information.  If a command-line name is specified, then this function
>   * fails if it is not found.
>   *
> - * The return value is a pointer to the actual name of the direcoty that was
> + * The return value is a pointer to the actual name of the directory that was
>   * opened.  When no directory is found, the return value is NULL.
>   *
>   * The escape sequences allowed in the search path are defined above.
> diff --git a/os/connection.c b/os/connection.c
> index 0c580ab..5420f6b 100644
> --- a/os/connection.c
> +++ b/os/connection.c
> @@ -1136,7 +1136,7 @@ ListenToAllClients(void)
>  /****************
>   * IgnoreClient
>   *    Removes one client from input masks.
> - *    Must have cooresponding call to AttendClient.
> + *    Must have corresponding call to AttendClient.
>   ****************/
>  
>  void
> diff --git a/os/log.c b/os/log.c
> index 4a310e6..105951e 100644
> --- a/os/log.c
> +++ b/os/log.c
> @@ -221,7 +221,7 @@ LogInit(const char *fname, const char *backup)
>       * needed.
>       */
>      if (saveBuffer && bufferSize > 0) {
> -	free(saveBuffer);	/* Must be free(), not free() */
> +	free(saveBuffer);
>  	saveBuffer = NULL;
>  	bufferSize = 0;
>      }

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list