Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2007 12:08:04 +0000
From:      Bruce M Simpson <bms@incunabulum.net>
To:        FreeBSD current mailing list <Current@freebsd.org>
Subject:   <sys/lock.h> breaks C++ in kernel Click
Message-ID:  <45C1D824.3090604@incunabulum.net>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------010809070603090408070202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

A C++ reserved keyword crept in, which is breaking the Click kernel 
module build.
This patch gets rid of the argument names from the prototypes, which 
also fixes style bugs.
Could I have an ok from someone for this?

Cheers,
BMS

--------------010809070603090408070202
Content-Type: text/x-patch;
 name="lock.h.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="lock.h.diff"

Index: lock.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/lock.h,v
retrieving revision 1.62
diff -u -p -r1.62 lock.h
--- lock.h	13 Nov 2006 05:43:42 -0000	1.62
+++ lock.h	1 Feb 2007 12:05:57 -0000
@@ -217,9 +217,9 @@ extern struct lock_class lock_class_lock
 
 extern struct lock_class *lock_classes[];
 
-void	lock_init(struct lock_object *lock, struct lock_class *class,
-    const char *name, const char *type, int flags);
-void	lock_destroy(struct lock_object *lock);
+void	lock_init(struct lock_object *, struct lock_class *,
+    const char *, const char *, int);
+void	lock_destroy(struct lock_object *);
 void	spinlock_enter(void);
 void	spinlock_exit(void);
 void	witness_init(struct lock_object *);

--------------010809070603090408070202--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C1D824.3090604>