treewide: strip trailing whitespace
Strip trailing whitespace in all code: find . -type f | grep "\.c$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.h$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dts$" | xargs sed -i 's/[ \t]\+$//' find . -type f | grep "\.dtsi$" | xargs sed -i 's/[ \t]\+$//' Signed-off-by: Mieczyslaw Nalewaj <namiltd@yahoo.com> Link: https://github.com/openwrt/openwrt/pull/18626 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
committed by
Robert Marko
parent
6b43a52171
commit
a238170e57
@@ -51,13 +51,13 @@ int main(int argc, char **argv)
|
||||
fprintf(stderr, "Command line string too long\n");
|
||||
goto err1;
|
||||
}
|
||||
|
||||
|
||||
if (((fd = open(argv[1], O_RDWR)) < 0) ||
|
||||
(ptr = (char *) mmap(0, search_space + CMDLINE_MAX, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == (void *) (-1)) {
|
||||
fprintf(stderr, "Could not open kernel image");
|
||||
goto err2;
|
||||
}
|
||||
|
||||
|
||||
for (p = ptr; p < (ptr + search_space); p += 4) {
|
||||
if (memcmp(p, "CMDLINE:", 8) == 0) {
|
||||
found = 1;
|
||||
|
||||
Reference in New Issue
Block a user