summaryrefslogtreecommitdiff
path: root/modutils/insmod.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-12-31 18:57:37 +0000
committerDenis Vlasenko2006-12-31 18:57:37 +0000
commit98ee06d3d46aa7f89c204681c7075b53300a6a6e (patch)
tree0f5cafbb22cd83fb73e024acba658c7a51582951 /modutils/insmod.c
parent806116b23407bdf95f22646f11f50b1d14e1cfc2 (diff)
downloadbusybox-98ee06d3d46aa7f89c204681c7075b53300a6a6e.zip
busybox-98ee06d3d46aa7f89c204681c7075b53300a6a6e.tar.gz
stop using __u32 etc. uint32_t is there for a reason
Diffstat (limited to 'modutils/insmod.c')
-rw-r--r--modutils/insmod.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 866e333..a9bf185 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -3765,12 +3765,8 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename,
if (realpath(filename, real)) {
absolute_filename = xstrdup(real);
- }
- else {
- int save_errno = errno;
- bb_error_msg("cannot get realpath for %s", filename);
- errno = save_errno;
- perror("");
+ } else {
+ bb_perror_msg("cannot get realpath for %s", filename);
absolute_filename = xstrdup(filename);
}
@@ -3783,7 +3779,8 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename,
*/
use_ksymtab = obj_find_section(f, "__ksymtab") || flag_noexport;
- if ((sec = obj_find_section(f, ".this"))) {
+ sec = obj_find_section(f, ".this");
+ if (sec) {
/* tag the module header with the object name, last modified
* timestamp and module version. worst case for module version
* is 0xffffff, decimal 16777215. putting all three fields in
@@ -3834,8 +3831,8 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename,
/* tag the desired sections if size is non-zero */
for (i = 0; i < sizeof(section_names)/sizeof(section_names[0]); ++i) {
- if ((sec = obj_find_section(f, section_names[i])) &&
- sec->header.sh_size) {
+ sec = obj_find_section(f, section_names[i]);
+ if (sec && sec->header.sh_size) {
l = sizeof(symprefix)+ /* "__insmod_" */
lm_name+ /* module name */
2+ /* "_S" */