OSDN Git Service
(root)
/
android-x86
/
hardware-intel-libsensors.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create some documentation for the iio sensors HAL component
[android-x86/hardware-intel-libsensors.git]
/
discovery.c
diff --git
a/discovery.c
b/discovery.c
index
640c3f9
..
7434c33
100644
(file)
--- a/
discovery.c
+++ b/
discovery.c
@@
-30,7
+30,7
@@
void discover_sensors(int dev_num, char *sysfs_base_path, char map[catalog_size]
/* Enumerate entries in this iio device's base folder */
while ((d = readdir(dir))) {
/* Enumerate entries in this iio device's base folder */
while ((d = readdir(dir))) {
- if (!str
cmp(d->d_name, ".") || !strcmp(d->d_name, ".."
))
+ if (!str
ncmp(d->d_name, ".", sizeof(".")) || !strncmp(d->d_name, "..", sizeof("..")
))
continue;
/* If the name matches a catalog entry, flag it */
continue;
/* If the name matches a catalog entry, flag it */