diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 18:57:37 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-12-31 18:57:37 +0000 |
| commit | 98ee06d3d46aa7f89c204681c7075b53300a6a6e (patch) | |
| tree | 0f5cafbb22cd83fb73e024acba658c7a51582951 /modutils | |
| parent | 806116b23407bdf95f22646f11f50b1d14e1cfc2 (diff) | |
| download | busybox-w32-98ee06d3d46aa7f89c204681c7075b53300a6a6e.tar.gz busybox-w32-98ee06d3d46aa7f89c204681c7075b53300a6a6e.tar.bz2 busybox-w32-98ee06d3d46aa7f89c204681c7075b53300a6a6e.zip | |
stop using __u32 etc. uint32_t is there for a reason
Diffstat (limited to 'modutils')
| -rw-r--r-- | modutils/insmod.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 866e333ec..a9bf1854c 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c | |||
| @@ -3765,12 +3765,8 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename, | |||
| 3765 | 3765 | ||
| 3766 | if (realpath(filename, real)) { | 3766 | if (realpath(filename, real)) { |
| 3767 | absolute_filename = xstrdup(real); | 3767 | absolute_filename = xstrdup(real); |
| 3768 | } | 3768 | } else { |
| 3769 | else { | 3769 | bb_perror_msg("cannot get realpath for %s", filename); |
| 3770 | int save_errno = errno; | ||
| 3771 | bb_error_msg("cannot get realpath for %s", filename); | ||
| 3772 | errno = save_errno; | ||
| 3773 | perror(""); | ||
| 3774 | absolute_filename = xstrdup(filename); | 3770 | absolute_filename = xstrdup(filename); |
| 3775 | } | 3771 | } |
| 3776 | 3772 | ||
| @@ -3783,7 +3779,8 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename, | |||
| 3783 | */ | 3779 | */ |
| 3784 | use_ksymtab = obj_find_section(f, "__ksymtab") || flag_noexport; | 3780 | use_ksymtab = obj_find_section(f, "__ksymtab") || flag_noexport; |
| 3785 | 3781 | ||
| 3786 | if ((sec = obj_find_section(f, ".this"))) { | 3782 | sec = obj_find_section(f, ".this"); |
| 3783 | if (sec) { | ||
| 3787 | /* tag the module header with the object name, last modified | 3784 | /* tag the module header with the object name, last modified |
| 3788 | * timestamp and module version. worst case for module version | 3785 | * timestamp and module version. worst case for module version |
| 3789 | * is 0xffffff, decimal 16777215. putting all three fields in | 3786 | * is 0xffffff, decimal 16777215. putting all three fields in |
| @@ -3834,8 +3831,8 @@ add_ksymoops_symbols(struct obj_file *f, const char *filename, | |||
| 3834 | /* tag the desired sections if size is non-zero */ | 3831 | /* tag the desired sections if size is non-zero */ |
| 3835 | 3832 | ||
| 3836 | for (i = 0; i < sizeof(section_names)/sizeof(section_names[0]); ++i) { | 3833 | for (i = 0; i < sizeof(section_names)/sizeof(section_names[0]); ++i) { |
| 3837 | if ((sec = obj_find_section(f, section_names[i])) && | 3834 | sec = obj_find_section(f, section_names[i]); |
| 3838 | sec->header.sh_size) { | 3835 | if (sec && sec->header.sh_size) { |
| 3839 | l = sizeof(symprefix)+ /* "__insmod_" */ | 3836 | l = sizeof(symprefix)+ /* "__insmod_" */ |
| 3840 | lm_name+ /* module name */ | 3837 | lm_name+ /* module name */ |
| 3841 | 2+ /* "_S" */ | 3838 | 2+ /* "_S" */ |
