mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
filearch: Return 'i386' instead of 'i486' (as documented).
And some incidental code refactoring.
This commit is contained in:
@@ -70,13 +70,11 @@ canonical_elf_arch (guestfs_h *g,
|
||||
const char *r;
|
||||
char *ret;
|
||||
|
||||
if (strstr (elf_arch, "Intel 80386"))
|
||||
if (strstr (elf_arch, "Intel 80386") ||
|
||||
strstr (elf_arch, "Intel 80486"))
|
||||
r = "i386";
|
||||
else if (strstr (elf_arch, "Intel 80486"))
|
||||
r = "i486";
|
||||
else if (strstr (elf_arch, "x86-64"))
|
||||
r = "x86_64";
|
||||
else if (strstr (elf_arch, "AMD x86-64"))
|
||||
else if (strstr (elf_arch, "x86-64") ||
|
||||
strstr (elf_arch, "AMD x86-64"))
|
||||
r = "x86_64";
|
||||
else if (strstr (elf_arch, "SPARC32"))
|
||||
r = "sparc";
|
||||
|
||||
Reference in New Issue
Block a user