projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
530727a
)
udev-rules: use size_t for array index
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 18 Feb 2019 00:24:03 +0000
(09:24 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 18 Feb 2019 00:24:03 +0000
(09:24 +0900)
src/udev/udev-rules.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-rules.c
b/src/udev/udev-rules.c
index
e4fff94
..
c63af7c
100644
(file)
--- a/
src/udev/udev-rules.c
+++ b/
src/udev/udev-rules.c
@@
-676,7
+676,7
@@
static void attr_subst_subdir(char *attr, size_t len) {
static int get_key(char **line, char **key, enum operation_type *op, char **value) {
char *linepos;
char *temp;
-
unsigned
i, j;
+
size_t
i, j;
linepos = *line;
if (!linepos || linepos[0] == '\0')