search for: sextlinux

Displaying 2 results from an estimated 2 matches for "sextlinux".

Did you mean: extlinux
2010 Jun 19
0
[PATCH] extlinux/main.c: Silence warnings
...b/extlinux/main.c index 6ce3b60..a9645d0 100644 --- a/extlinux/main.c +++ b/extlinux/main.c @@ -512,8 +512,9 @@ int ext2_fat_install_file(const char *path, int devfd, struct stat *rst) char *file; int fd = -1, dirfd = -1; int modbytes; + int ret; - asprintf(&file, "%s%sextlinux.sys", + ret = asprintf(&file, "%s%sextlinux.sys", path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); if (!file) { perror(program);
2015 Nov 13
4
[PATCH 1/4] extlinux: simplification
...+ char *file, *oldfile; int fd = -1, dirfd = -1; - int r1, r2, r3; + int r1, r2; r1 = asprintf(&file, "%s%sldlinux.sys", path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); r2 = asprintf(&oldfile, "%s%sextlinux.sys", path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); - r3 = asprintf(&c32file, "%s%sldlinux.c32", - path, path[0] && path[strlen(path) - 1] == '/' ? "" : "/"); - if (r1 < 0 || !f...