diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:42:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 15:42:06 +0000 |
commit | ff131b980d524a33d8a43cefe65e14f64a43f2da (patch) | |
tree | 82d252f04f9a8511be452dcd8b5e322c59653c72 /modutils | |
parent | 163516da3ae54a587fb476c621793bd206f380c2 (diff) |
style fixes. No code changes.
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 18 | ||||
-rw-r--r-- | modutils/modprobe.c | 4 |
2 files changed, 11 insertions, 11 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index d4575e03b..7d5cf473c 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -280,7 +280,7 @@ extern int insmod_ng_main( int argc, char **argv); #endif /* v850e */ -#if defined (__v850e__) +#if defined(__v850e__) #define MATCH_MACHINE(x) ((x) == EM_V850 || (x) == EM_CYGNUS_V850) #define SHT_RELM SHT_RELA #define Elf32_RelM Elf32_Rela @@ -982,7 +982,7 @@ arch_apply_relocation(struct obj_file *f, *loc += v - got; break; -#elif defined (__microblaze__) +#elif defined(__microblaze__) case R_MICROBLAZE_NONE: case R_MICROBLAZE_64_NONE: case R_MICROBLAZE_32_SYM_OP_SYM: @@ -1540,7 +1540,7 @@ arch_apply_relocation(struct obj_file *f, } # endif /* __SH5__ */ -#elif defined (__v850e__) +#elif defined(__v850e__) case R_V850_NONE: break; @@ -1663,7 +1663,7 @@ bb_use_plt: ip[2] = 0x7d6903a6; /* mtctr r11 */ ip[3] = 0x4e800420; /* bctr */ #endif -#if defined (__v850e__) +#if defined(__v850e__) /* We have to trash a register, so we assume that any control transfer more than 21-bits away must be a function call (so we can use a call-clobbered register). */ @@ -1676,15 +1676,15 @@ bb_use_plt: /* relative distance to target */ v -= dot; /* if the target is too far away.... */ -#if defined (__arm__) || defined (__powerpc__) +#if defined(__arm__) || defined(__powerpc__) if ((int)v < -0x02000000 || (int)v >= 0x02000000) -#elif defined (__v850e__) +#elif defined(__v850e__) if ((ElfW(Sword))v > 0x1fffff || (ElfW(Sword))v < (ElfW(Sword))-0x200000) #endif /* go via the plt */ v = plt + pe->offset - dot; -#if defined (__v850e__) +#if defined(__v850e__) if (v & 1) #else if (v & 3) @@ -1701,7 +1701,7 @@ bb_use_plt: #if defined(__powerpc__) *loc = (*loc & ~0x03fffffc) | (v & 0x03fffffc); #endif -#if defined (__v850e__) +#if defined(__v850e__) /* We write two shorts instead of a long because even 32-bit insns only need half-word alignment, but the 32-bit data write needs to be long-word aligned. */ @@ -1895,7 +1895,7 @@ static void arch_create_got(struct obj_file *f) got_needed = 1; continue; -#elif defined (__v850e__) +#elif defined(__v850e__) case R_V850_22_PCREL: plt_needed = 1; break; diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 57e19b4ab..09494ca5f 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -686,8 +686,8 @@ static int check_pattern(const char* pat_src, const char* mod_src) { ret = fnmatch(pat, mod, 0); if (ENABLE_FEATURE_CLEAN_UP) { - free (pat); - free (mod); + free(pat); + free(mod); } return ret; |