summaryrefslogtreecommitdiff
path: root/udev_lib.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-23 03:43:37 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:30:28 -0700
commita4f0cc793a9a2053f9733c5ebd1445c9a2678445 (patch)
tree64cbfdbcf4a016c9e9148d396cc8eb97da594912 /udev_lib.c
parent8474ff500fa5671185f6203f5f20162304a5c7df (diff)
[PATCH] Patch from Alex Riesen <raa.lkml@gmail.com>
> I just put const's at some places. It cut down data segments, but > increased code size. > Overall still smaller: > > -rwxr-xr-x 1 user users 50420 Nov 19 10:53 ../udev-046/udev > -rwxr-xr-x 1 user users 49556 Nov 19 10:53 udev > text data bss dec hex filename > 47245 968 22480 70693 11425 ../udev-046/udev > 48089 104 22064 70257 11271 udev > > Also, the instance of utsname in udev_lib.c is used only once.
Diffstat (limited to 'udev_lib.c')
-rw-r--r--udev_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_lib.c b/udev_lib.c
index f388d23f3e..86a526f7e8 100644
--- a/udev_lib.c
+++ b/udev_lib.c
@@ -62,12 +62,12 @@ void udev_set_values(struct udevice *udev, const char* devpath,
int kernel_release_satisfactory(int version, int patchlevel, int sublevel)
{
- static struct utsname uts;
static int kversion = 0;
static int kpatchlevel;
static int ksublevel;
if (kversion == 0) {
+ struct utsname uts;
if (uname(&uts) != 0)
return -1;