Added some more '/* getopt not needed */' lines.
[oweals/busybox.git] / dpkg.c
diff --git a/dpkg.c b/dpkg.c
index 6e309eb062b024d1f9e9864677610cd780d1b55c..4e53652e4fbdf446329e3dbdc795a4a3c775bb35 100644 (file)
--- a/dpkg.c
+++ b/dpkg.c
@@ -79,9 +79,9 @@ static const char *statuswords[][10] = {
                "post-inst-failed", "removal-failed", 0 }
 };
 
-const int color_white  = 0;
-const int color_grey   = 1;
-const int color_black  = 2;
+static const int color_white   = 0;
+static const int color_grey    = 1;
+static const int color_black   = 2;
 
 /* data structures */
 typedef struct package_s {
@@ -192,7 +192,7 @@ static void depends_sort_visit(package_t **ordered, package_t *pkgs,
 
 #if 0
        /* add it to the list */
-       newnode = (struct package_t *)malloc(sizeof(struct package_t));
+       newnode = (struct package_t *)xmalloc(sizeof(struct package_t));
        /* make a shallow copy */
        *newnode = *pkg;
        newnode->next = *ordered;
@@ -609,7 +609,7 @@ static int dpkg_dounpack(package_t *pkg)
                }
 
                /* create the list file */
-               lst_file = (char *) malloc(strlen(infodir) + strlen(pkg->package) + 6);
+               lst_file = (char *) xmalloc(strlen(infodir) + strlen(pkg->package) + 6);
                strcpy(lst_file, infodir);
                strcat(lst_file, pkg->package);
                strcat(lst_file, ".list");