Skip to contentSkip to conversation

security/seclvl.c: make some code static

PATCH In review Adrian Bunk 2 participants 2 messages Jan 23, 2005 Security (LSM)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 security/seclvl.c: make some code static

This patch makes some needlessly global code static.

---

 security/seclvl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

This patch was already sent on:
- 28 Nov 2004

security/seclvl.c renamed from security/seclvl.c.old +3 -3
@@ -170,7 +170,7 @@
 /**
  * Callback function pointers for show and store
  */
-struct sysfs_ops seclvlfs_sysfs_ops = {
+static struct sysfs_ops seclvlfs_sysfs_ops = {
 	.show = seclvl_attr_show,
 	.store = seclvl_attr_store,
 };
@@ -275,7 +275,7 @@
 }
 
 /* Generate sysfs_attr_seclvl */
-struct seclvl_attribute sysfs_attr_seclvl =
+static struct seclvl_attribute sysfs_attr_seclvl =
 __ATTR(seclvl, (S_IFREG | S_IRUGO | S_IWUSR), seclvl_read_file,
        seclvl_write_file);
 
@@ -386,7 +386,7 @@
 }
 
 /* Generate sysfs_attr_passwd */
-struct seclvl_attribute sysfs_attr_passwd =
+static struct seclvl_attribute sysfs_attr_passwd =
 __ATTR(passwd, (S_IFREG | S_IRUGO | S_IWUSR), seclvl_read_passwd,
        seclvl_write_passwd);
 
#1 lore raw
Quoted 3 lines · * Adrian Bunk ([email protected]) wrote:

This patch makes some needlessly global code static.

ACK, I'll push this up if Andrew doesn't grab it.

thanks,
-chris

Signature · 1 line
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net