Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix indentation
Baptiste Daroussin committed 8 years ago
commit 6687b1c298e107f5d39e80a4174228a82057271e
parent 3a430f6
1 file changed +9 -9
modified libpkg/pkg_elf.c
@@ -843,19 +843,19 @@ pkg_get_myarch_elfparse(char *dest, size_t sz)
	    (int)elfhdr.e_ident[EI_CLASS]);

	arch = elf_corres_to_string(mach_corres, (int) elfhdr.e_machine);
-
if (version_style == 2) {
-
	snprintf(dest, sz, "%s:%d.%d.%d", osname, gnu_abi_tag[1],
-
		 gnu_abi_tag[2], gnu_abi_tag[3]);
-
} else {
+
	if (version_style == 2) {
+
		snprintf(dest, sz, "%s:%d.%d.%d", osname, gnu_abi_tag[1],
+
		    gnu_abi_tag[2], gnu_abi_tag[3]);
+
	} else {
#if defined(__DragonFly__)
-
	snprintf(dest, sz, "%s:%d.%d",
-
	    osname, version / 100000, (((version / 100 % 1000)+1)/2)*2);
+
		snprintf(dest, sz, "%s:%d.%d",
+
		    osname, version / 100000, (((version / 100 % 1000)+1)/2)*2);
#elif defined(__NetBSD__)
-
	snprintf(dest, sz, "%s:%d", osname, (version + 1000000) / 100000000);
+
		snprintf(dest, sz, "%s:%d", osname, (version + 1000000) / 100000000);
#else
-
	snprintf(dest, sz, "%s:%d", osname, version / 100000);
+
		snprintf(dest, sz, "%s:%d", osname, version / 100000);
#endif
-
}
+
	}

	switch (elfhdr.e_machine) {
	case EM_ARM: