aboutsummaryrefslogtreecommitdiff
path: root/insmod.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 02:55:13 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-12-01 02:55:13 +0000
commit8cb2f75a75eb9694f36312ab4856d335ab2bac19 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /insmod.c
parent8bfd1e939579e988ad4d2c0cc1425448f1fd7236 (diff)
downloadbusybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.tar.gz
busybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.tar.bz2
busybox-w32-8cb2f75a75eb9694f36312ab4856d335ab2bac19.zip
Stop using TRUE and FALSE for exit status.
git-svn-id: svn://busybox.net/trunk/busybox@1360 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'insmod.c')
-rw-r--r--insmod.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/insmod.c b/insmod.c
index 4f96c950e..6386b9407 100644
--- a/insmod.c
+++ b/insmod.c
@@ -77,7 +77,7 @@
77#ifndef MODUTILS_MODULE_H 77#ifndef MODUTILS_MODULE_H
78#define MODUTILS_MODULE_H 1 78#define MODUTILS_MODULE_H 1
79 79
80#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $" 80#ident "$Id: insmod.c,v 1.29 2000/12/01 02:55:13 kraai Exp $"
81 81
82/* This file contains the structures used by the 2.0 and 2.1 kernels. 82/* This file contains the structures used by the 2.0 and 2.1 kernels.
83 We do not use the kernel headers directly because we do not wish 83 We do not use the kernel headers directly because we do not wish
@@ -283,7 +283,7 @@ int delete_module(const char *);
283#ifndef MODUTILS_OBJ_H 283#ifndef MODUTILS_OBJ_H
284#define MODUTILS_OBJ_H 1 284#define MODUTILS_OBJ_H 1
285 285
286#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $" 286#ident "$Id: insmod.c,v 1.29 2000/12/01 02:55:13 kraai Exp $"
287 287
288/* The relocatable object is manipulated using elfin types. */ 288/* The relocatable object is manipulated using elfin types. */
289 289
@@ -2769,7 +2769,7 @@ extern int insmod_main( int argc, char **argv)
2769 FILE *fp; 2769 FILE *fp;
2770 struct obj_file *f; 2770 struct obj_file *f;
2771 char m_name[BUFSIZ + 1] = "\0"; 2771 char m_name[BUFSIZ + 1] = "\0";
2772 int exit_status = FALSE; 2772 int exit_status = EXIT_FAILURE;
2773 int m_has_modinfo; 2773 int m_has_modinfo;
2774#ifdef BB_FEATURE_INSMOD_VERSION_CHECKING 2774#ifdef BB_FEATURE_INSMOD_VERSION_CHECKING
2775 int k_version; 2775 int k_version;
@@ -2833,7 +2833,7 @@ extern int insmod_main( int argc, char **argv)
2833 || ((fp = fopen(m_filename, "r")) == NULL)) 2833 || ((fp = fopen(m_filename, "r")) == NULL))
2834 { 2834 {
2835 errorMsg("No module named '%s' found in '%s'\n", m_fullName, _PATH_MODULES); 2835 errorMsg("No module named '%s' found in '%s'\n", m_fullName, _PATH_MODULES);
2836 exit(FALSE); 2836 return EXIT_FAILURE;
2837 } 2837 }
2838 } else 2838 } else
2839 fatalError("No module named '%s' found in '%s'\n", m_fullName, _PATH_MODULES); 2839 fatalError("No module named '%s' found in '%s'\n", m_fullName, _PATH_MODULES);
@@ -2843,7 +2843,7 @@ extern int insmod_main( int argc, char **argv)
2843 2843
2844 if ((f = obj_load(fp)) == NULL) { 2844 if ((f = obj_load(fp)) == NULL) {
2845 perror("Could not load the module\n"); 2845 perror("Could not load the module\n");
2846 exit(FALSE); 2846 return EXIT_FAILURE;
2847 } 2847 }
2848 2848
2849 if (get_modinfo_value(f, "kernel_version") == NULL) 2849 if (get_modinfo_value(f, "kernel_version") == NULL)
@@ -2981,7 +2981,7 @@ extern int insmod_main( int argc, char **argv)
2981 goto out; 2981 goto out;
2982 } 2982 }
2983 2983
2984 exit_status = TRUE; 2984 exit_status = EXIT_SUCCESS;
2985 2985
2986out: 2986out:
2987 fclose(fp); 2987 fclose(fp);