chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
60-persistent-storage-tape: s/path_id.sh/path_id/
[elogind.git]
/
libudev
/
libudev-util-private.c
diff --git
a/libudev/libudev-util-private.c
b/libudev/libudev-util-private.c
index 8c535125a83c0fee9e818357912d8b1215ac1ecb..2f9f4a74c31bf016bd4bef867f19333a490b907b 100644
(file)
--- a/
libudev/libudev-util-private.c
+++ b/
libudev/libudev-util-private.c
@@
-84,7
+84,7
@@
int util_delete_path(struct udev *udev, const char *path)
if (pos == p || pos == NULL)
return 0;
if (pos == p || pos == NULL)
return 0;
-
while (1
) {
+
for (;;
) {
*pos = '\0';
pos = strrchr(p, '/');
*pos = '\0';
pos = strrchr(p, '/');
@@
-454,7
+454,7
@@
int util_run_program(struct udev *udev, const char *command, char **envp,
if (errpipe[READ_END] > 0)
close(errpipe[READ_END]);
if (errpipe[READ_END] > 0)
close(errpipe[READ_END]);
- /* return the childs stdout string */
+ /* return the child
'
s stdout string */
if (result) {
result[respos] = '\0';
dbg(udev, "result='%s'\n", result);
if (result) {
result[respos] = '\0';
dbg(udev, "result='%s'\n", result);