Date: Wed, 23 Feb 2011 15:33:23 GMT From: "Eduard S. Markelov" <MarkelovEduard@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/154975: typo in source code Message-ID: <201102231533.p1NFXNBi074990@red.freebsd.org> Resent-Message-ID: <201102231540.p1NFe6Rg023079@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154975
>Category: misc
>Synopsis: typo in source code
>Confidential: no
>Severity: non-critical
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Feb 23 15:40:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Eduard S. Markelov
>Release: 8.1-RELEASE
>Organization:
>Environment:
FreeBSD sirius.local 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Typo in macro definition.
File: /usr/include/pthread.h
Line: 170
Macro: pthread_cleanup_push(cleanup_routine, cleanup_arg)
Description:
The macro no have the close brace but end with one more open brace!
Code:
#define pthread_cleanup_push(cleanup_routine, cleanup_arg) \
{ \
struct _pthread_cleanup_info __cleanup_info__; \
__pthread_cleanup_push_imp(cleanup_routine, cleanup_arg, \
&__cleanup_info__); \
{
>How-To-Repeat:
>Fix:
change open brace to close brace:
#define pthread_cleanup_push(cleanup_routine, cleanup_arg) \
{ \
struct _pthread_cleanup_info __cleanup_info__; \
__pthread_cleanup_push_imp(cleanup_routine, cleanup_arg, \
&__cleanup_info__); \
}
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102231533.p1NFXNBi074990>
