mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
osdep: Remove trailing whitespaces
Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
8ff08468d3
commit
55e237b57d
22 files changed
+46
-46
No files matched your search
@@ -19,21 +19,21 @@
|
||||
#include <grub/emu/exec.h>
|
||||
#include <grub/util/install.h>
|
||||
|
||||
int
|
||||
int
|
||||
grub_install_compress_gzip (const char *src, const char *dest)
|
||||
{
|
||||
return grub_util_exec_redirect ((const char * []) { "gzip", "--best",
|
||||
"--stdout", NULL }, src, dest);
|
||||
}
|
||||
|
||||
int
|
||||
int
|
||||
grub_install_compress_xz (const char *src, const char *dest)
|
||||
{
|
||||
return grub_util_exec_redirect ((const char * []) { "xz",
|
||||
"--lzma2=dict=128KiB", "--check=none", "--stdout", NULL }, src, dest);
|
||||
}
|
||||
|
||||
int
|
||||
int
|
||||
grub_install_compress_lzop (const char *src, const char *dest)
|
||||
{
|
||||
return grub_util_exec_redirect ((const char * []) { "lzop", "-9", "-c",
|
||||
|
||||
@@ -17,6 +17,6 @@ grub_util_get_cpu_time_ms (void)
|
||||
sc_clk_tck = 1000;
|
||||
}
|
||||
|
||||
times (&tm);
|
||||
times (&tm);
|
||||
return (tm.tms_utime * 1000ULL) / sc_clk_tck;
|
||||
}
|
||||
@@ -88,7 +88,7 @@ grub_util_exec_redirect_all (const char *const *argv, const char *stdin_file,
|
||||
{
|
||||
int fd;
|
||||
/* Child. */
|
||||
|
||||
|
||||
/* Close fd's. */
|
||||
#ifdef GRUB_UTIL
|
||||
grub_util_devmapper_cleanup ();
|
||||
|
||||
@@ -257,7 +257,7 @@ grub_util_find_root_devices_from_poolname (char *poolname)
|
||||
ret = getline (&line, &len, fp);
|
||||
if (ret == -1)
|
||||
break;
|
||||
|
||||
|
||||
if (sscanf (line, " %s %256s %256s %256s %256s %256s",
|
||||
name, state, readlen, writelen, cksum, notes) >= 5)
|
||||
switch (st)
|
||||
@@ -305,7 +305,7 @@ grub_util_find_root_devices_from_poolname (char *poolname)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
free (line);
|
||||
}
|
||||
|
||||
@@ -449,7 +449,7 @@ grub_find_device (const char *dir, dev_t dev)
|
||||
|
||||
cwd = xgetcwd ();
|
||||
res = xmalloc (strlen (cwd) + strlen (ent->d_name) + 3);
|
||||
sprintf (res,
|
||||
sprintf (res,
|
||||
#if defined(__NetBSD__) || defined(__OpenBSD__)
|
||||
/* Convert this block device to its character (raw) device. */
|
||||
"%s/r%s",
|
||||
|
||||
@@ -164,13 +164,13 @@ grub_install_register_efi (grub_device_t efidir_grub_dev,
|
||||
ret = grub_util_exec ((const char * []){ "efibootmgr", "-q",
|
||||
"-c", "-d", efidir_disk,
|
||||
"-p", efidir_part_str, "-w",
|
||||
"-L", efi_distributor, "-l",
|
||||
"-L", efi_distributor, "-l",
|
||||
efifile_path, NULL });
|
||||
else
|
||||
ret = grub_util_exec ((const char * []){ "efibootmgr",
|
||||
"-c", "-d", efidir_disk,
|
||||
"-p", efidir_part_str, "-w",
|
||||
"-L", efi_distributor, "-l",
|
||||
"-L", efi_distributor, "-l",
|
||||
efifile_path, NULL });
|
||||
free (efidir_part_str);
|
||||
return ret;
|
||||
@@ -235,7 +235,7 @@ grub_install_sgi_setup (const char *install_device,
|
||||
const char *imgfile, const char *destname)
|
||||
{
|
||||
grub_util_exec ((const char * []){ "dvhtool", "-d",
|
||||
install_device, "--unix-to-vh",
|
||||
install_device, "--unix-to-vh",
|
||||
imgfile, destname, NULL });
|
||||
grub_util_warn ("%s", _("You will have to set `SystemPartition' and `OSLoader' manually."));
|
||||
}
|
||||
@@ -128,7 +128,7 @@ grub_make_system_path_relative_to_its_root (const char *path)
|
||||
free (buf);
|
||||
buf3 = xstrdup (buf2 + offset);
|
||||
buf2[offset] = 0;
|
||||
|
||||
|
||||
free (buf2);
|
||||
|
||||
/* Remove trailing slashes, return empty string if root directory. */
|
||||
|
||||
Reference in new issue
Block a user