lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Sun, 24 Sep 2006 13:46:55 +0200
From:	Thomas Petazzoni <thomas.petazzoni@...x.org>
To:	linux-kernel@...r.kernel.org
Cc:	mj@...ey.karlin.mff.cuni.cz, crutcher+kernel@...astacks.com
Subject: [PATCH] Prevent multiple inclusion of linux/sysrq.h

Hi,

From: Thomas Petazzoni <thomas.petazzoni@...x.org>

Prevent multiple inclusions of include/linux/sysrq.h using traditional
#ifndef..#endif.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@...x.org>

---

Index: linux-2.6/include/linux/sysrq.h
===================================================================
--- linux-2.6.orig/include/linux/sysrq.h	2006-09-23 00:04:05.000000000 +0200
+++ linux-2.6/include/linux/sysrq.h	2006-09-23 00:05:27.000000000 +0200
@@ -11,6 +11,8 @@
  *	based upon discusions in irc://irc.openprojects.net/#kernelnewbies
  */
 
+#ifndef _LINUX_SYSRQ_H
+#define _LINUX_SYSRQ_H
 
 struct pt_regs;
 struct tty_struct;
@@ -57,3 +59,5 @@
 #define unregister_sysrq_key(ig,nore) __reterr()
 
 #endif
+
+#endif /* _LINUX_SYSRQ_H */
-- 
PETAZZONI Thomas - thomas.petazzoni@...x.org 
http://{thomas,sos,kos}.enix.org - Jabber: thomas.petazzoni@...ber.dk
http://{agenda,livret}dulibre.org - http://www.toulibre.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

Download attachment "signature.asc" of type "application/pgp-signature" (190 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ