Some cleanup of opkg_conf_init/opkg_conf_deinit.
[oweals/opkg-lede.git] / libopkg / args.c
index f1f79523a7d883e8b513d723cc6aab523f93b635..3f1e3ce8439fc75a4d18c2113f0bfa6549a15d5e 100644 (file)
@@ -48,18 +48,12 @@ enum long_args_opt
      ARGS_OPT_CACHE,
 };
 
-char *conf_file_dir;
-
 void args_init(args_t *args)
 {
      memset(args, 0, sizeof(args_t));
 
      args->dest = ARGS_DEFAULT_DEST;
 
-     conf_file_dir = getenv("OPKG_CONF_DIR");
-     if (conf_file_dir == NULL || conf_file_dir[0] == '\0') {
-         conf_file_dir = ARGS_DEFAULT_CONF_FILE_DIR;
-     }
      sprintf_alloc(&args->conf_file, "%s/%s", OPKGETCDIR,
                   ARGS_DEFAULT_CONF_FILE_NAME);