diff options
author | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 20:07:11 (EST) |
---|---|---|
committer | graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358> | 2009-11-12 20:07:11 (EST) |
commit | f502667e06364b16c7d06dcdf0df3d21e61140dd (patch) | |
tree | 0dc284c90bcedafbd4c63d7e37803d862fd022ba /libopkg/args.c | |
parent | 9238a38ba9d4f240ffc96a67634bb62a680ac033 (diff) |
Some cleanup of opkg_conf_init/opkg_conf_deinit.
git-svn-id: http://opkg.googlecode.com/svn/trunk@294 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg/args.c')
-rw-r--r-- | libopkg/args.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libopkg/args.c b/libopkg/args.c index f1f7952..3f1e3ce 100644 --- a/libopkg/args.c +++ b/libopkg/args.c @@ -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); |