Fixed two compiler warnings
authorRobert Griebl <griebl@gmx.de>
Sun, 21 Jul 2002 17:33:27 +0000 (17:33 -0000)
committerRobert Griebl <griebl@gmx.de>
Sun, 21 Jul 2002 17:33:27 +0000 (17:33 -0000)
loginutils/addgroup.c
modutils/insmod.c

index 4a5ef854276b79f039e9101f555c464eb2df75b2..aca3b926719fe2504cb5eb260883094e9ba38476 100644 (file)
@@ -89,7 +89,7 @@ static int addgroup(const char *filename, char *group, gid_t gid)
 
 #ifdef CONFIG_FEATURE_SHADOWPASSWDS
        FILE *etc_gshadow;
-       char *gshadow = shadow_file;
+       const char *gshadow = shadow_file;
 #endif
 
        struct group gr;
@@ -162,4 +162,4 @@ int addgroup_main(int argc, char **argv)
        return addgroup(group_file, group, gid);
 }
 
-/* $Id: addgroup.c,v 1.3 2002/07/03 23:19:18 andersen Exp $ */
+/* $Id: addgroup.c,v 1.4 2002/07/21 17:33:27 sandman Exp $ */
index 4f2e9a779484c34f9c34758b9b499ed57a97fbef..856c12a63fbc6c809d3d6d882b0a3650fe33086f 100644 (file)
 #ifndef MODUTILS_MODULE_H
 static const int MODUTILS_MODULE_H = 1;
 
-#ident "$Id: insmod.c,v 1.88 2002/07/19 00:05:48 sandman Exp $"
+#ident "$Id: insmod.c,v 1.89 2002/07/21 17:33:26 sandman Exp $"
 
 /* This file contains the structures used by the 2.0 and 2.1 kernels.
    We do not use the kernel headers directly because we do not wish
@@ -454,7 +454,7 @@ int delete_module(const char *);
 #ifndef MODUTILS_OBJ_H
 static const int MODUTILS_OBJ_H = 1;
 
-#ident "$Id: insmod.c,v 1.88 2002/07/19 00:05:48 sandman Exp $"
+#ident "$Id: insmod.c,v 1.89 2002/07/21 17:33:26 sandman Exp $"
 
 /* The relocatable object is manipulated using elfin types.  */
 
@@ -3503,7 +3503,7 @@ extern int insmod_main( int argc, char **argv)
                tmp[len] = '\0';
        }
 
-       bb_asprintf(&m_fullName, "%s.o", tmp, ".o");
+       bb_asprintf(&m_fullName, "%s.o", tmp);
 
        if (!m_name) {
                m_name = tmp;