aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griebl <griebl@gmx.de>2002-07-21 17:33:27 +0000
committerRobert Griebl <griebl@gmx.de>2002-07-21 17:33:27 +0000
commit967c3d44066d3f8b290953d8896765ec1edf4ef7 (patch)
tree583680b59a53df6d29d8a9c33e62bd6f02e4a622
parent1cd044549531ef1c4016ec3c60652dad95b1617f (diff)
downloadbusybox-w32-967c3d44066d3f8b290953d8896765ec1edf4ef7.tar.gz
busybox-w32-967c3d44066d3f8b290953d8896765ec1edf4ef7.tar.bz2
busybox-w32-967c3d44066d3f8b290953d8896765ec1edf4ef7.zip
Fixed two compiler warnings
-rw-r--r--loginutils/addgroup.c4
-rw-r--r--modutils/insmod.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/loginutils/addgroup.c b/loginutils/addgroup.c
index 4a5ef8542..aca3b9267 100644
--- a/loginutils/addgroup.c
+++ b/loginutils/addgroup.c
@@ -89,7 +89,7 @@ static int addgroup(const char *filename, char *group, gid_t gid)
89 89
90#ifdef CONFIG_FEATURE_SHADOWPASSWDS 90#ifdef CONFIG_FEATURE_SHADOWPASSWDS
91 FILE *etc_gshadow; 91 FILE *etc_gshadow;
92 char *gshadow = shadow_file; 92 const char *gshadow = shadow_file;
93#endif 93#endif
94 94
95 struct group gr; 95 struct group gr;
@@ -162,4 +162,4 @@ int addgroup_main(int argc, char **argv)
162 return addgroup(group_file, group, gid); 162 return addgroup(group_file, group, gid);
163} 163}
164 164
165/* $Id: addgroup.c,v 1.3 2002/07/03 23:19:18 andersen Exp $ */ 165/* $Id: addgroup.c,v 1.4 2002/07/21 17:33:27 sandman Exp $ */
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 4f2e9a779..856c12a63 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -233,7 +233,7 @@
233#ifndef MODUTILS_MODULE_H 233#ifndef MODUTILS_MODULE_H
234static const int MODUTILS_MODULE_H = 1; 234static const int MODUTILS_MODULE_H = 1;
235 235
236#ident "$Id: insmod.c,v 1.88 2002/07/19 00:05:48 sandman Exp $" 236#ident "$Id: insmod.c,v 1.89 2002/07/21 17:33:26 sandman Exp $"
237 237
238/* This file contains the structures used by the 2.0 and 2.1 kernels. 238/* This file contains the structures used by the 2.0 and 2.1 kernels.
239 We do not use the kernel headers directly because we do not wish 239 We do not use the kernel headers directly because we do not wish
@@ -454,7 +454,7 @@ int delete_module(const char *);
454#ifndef MODUTILS_OBJ_H 454#ifndef MODUTILS_OBJ_H
455static const int MODUTILS_OBJ_H = 1; 455static const int MODUTILS_OBJ_H = 1;
456 456
457#ident "$Id: insmod.c,v 1.88 2002/07/19 00:05:48 sandman Exp $" 457#ident "$Id: insmod.c,v 1.89 2002/07/21 17:33:26 sandman Exp $"
458 458
459/* The relocatable object is manipulated using elfin types. */ 459/* The relocatable object is manipulated using elfin types. */
460 460
@@ -3503,7 +3503,7 @@ extern int insmod_main( int argc, char **argv)
3503 tmp[len] = '\0'; 3503 tmp[len] = '\0';
3504 } 3504 }
3505 3505
3506 bb_asprintf(&m_fullName, "%s.o", tmp, ".o"); 3506 bb_asprintf(&m_fullName, "%s.o", tmp);
3507 3507
3508 if (!m_name) { 3508 if (!m_name) {
3509 m_name = tmp; 3509 m_name = tmp;