1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 11:55:44 +03:00

[PATCH] remove unused timestamp field

This commit is contained in:
kay.sievers@vrfy.org 2004-11-29 13:51:20 +01:00 committed by Greg KH
parent 5f72c470ad
commit 3fd7a9bfc0
2 changed files with 3 additions and 10 deletions

View File

@ -31,7 +31,6 @@
#include <errno.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/sysinfo.h>
#include "libsysfs/sysfs/libsysfs.h"
#include "list.h"
@ -697,7 +696,6 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
struct sysfs_device *sysfs_device = NULL;
struct config_device *dev;
struct perm_device *perm;
struct sysinfo info;
char *pos;
udev->mode = 0;
@ -774,7 +772,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
udev->ignore_remove = dev->ignore_remove;
if (udev->type == 'n')
goto done;
goto exit;
udev->partitions = dev->partitions;
udev->mode = dev->mode;
@ -790,7 +788,7 @@ int namedev_name_device(struct udevice *udev, struct sysfs_class_device *class_d
strfieldcpy(udev->name, udev->kernel_name);
if (udev->type == 'n')
goto done;
goto exit;
perms:
/* apply permissions from permissions file to empty fields */
@ -815,11 +813,7 @@ perms:
dbg("name, '%s' is going to have owner='%s', group='%s', mode = %#o",
udev->name, udev->owner, udev->group, udev->mode);
done:
/* store time of action */
sysinfo(&info);
udev->config_uptime = info.uptime;
exit:
return 0;
}

1
udev.h
View File

@ -63,7 +63,6 @@ struct udevice {
int ignore_remove;
int config_line;
char config_file[NAME_SIZE];
long config_uptime;
char bus_id[SYSFS_NAME_LEN];
char program_result[NAME_SIZE];
char kernel_number[NAME_SIZE];