chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] fix build error in namedev.c caused by previous patch.
[elogind.git]
/
udevdb.c
diff --git
a/udevdb.c
b/udevdb.c
index b12f5b3d46e5538b948cf8799f7269090293f9fa..40580e5a3b885550abd794258e3aaff9e96dd63e 100644
(file)
--- a/
udevdb.c
+++ b/
udevdb.c
@@
-1,5
+1,5
@@
/*
/*
- * udevdb.c
+ * udevdb.c
- udev database library
*
* Userspace devfs
*
*
* Userspace devfs
*
@@
-21,13
+21,11
@@
*
*/
*
*/
-/*
- * udev database library
- */
#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define _KLIBC_HAS_ARCH_SIG_ATOMIC_T
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
+#include <stddef.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <sys/stat.h>
@@
-35,8
+33,9
@@
#include <signal.h>
#include "libsysfs/sysfs/libsysfs.h"
#include <signal.h>
#include "libsysfs/sysfs/libsysfs.h"
-#include "udev_version.h"
#include "udev.h"
#include "udev.h"
+#include "udev_lib.h"
+#include "udev_version.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
#include "logging.h"
#include "namedev.h"
#include "udevdb.h"
@@
-184,7
+183,7
@@
static int find_device_by_name(char *path, struct udevice *dev)
if (strncmp(dev->name, find_name, sizeof(dev->name)) == 0) {
memcpy(find_dev, dev, sizeof(struct udevice));
if (strncmp(dev->name, find_name, sizeof(dev->name)) == 0) {
memcpy(find_dev, dev, sizeof(struct udevice));
- str
nfieldcpy
(find_path, path, NAME_SIZE);
+ str
fieldcpymax
(find_path, path, NAME_SIZE);
find_found = 1;
/* stop search */
return 1;
find_found = 1;
/* stop search */
return 1;
@@
-198,7
+197,7
@@
static int find_device_by_name(char *path, struct udevice *dev)
continue;
memcpy(find_dev, dev, sizeof(struct udevice));
continue;
memcpy(find_dev, dev, sizeof(struct udevice));
- str
nfieldcpy
(find_path, path, NAME_SIZE);
+ str
fieldcpymax
(find_path, path, NAME_SIZE);
find_found = 1;
return 1;
}
find_found = 1;
return 1;
}