diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:25 +0000 |
commit | b6aae0f38194cd39960a898606ee65d4be93a895 (patch) | |
tree | b73c92aefaf614291a71d05e9d28ca68f4ef021b /archival/dpkg_deb.c | |
parent | a41fdf331af344ecd3ec230a072857ea197e1890 (diff) |
preparatory patch for -Wwrite-strings #2
Diffstat (limited to 'archival/dpkg_deb.c')
-rw-r--r-- | archival/dpkg_deb.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/archival/dpkg_deb.c b/archival/dpkg_deb.c index d11d9df17..c9b8a0429 100644 --- a/archival/dpkg_deb.c +++ b/archival/dpkg_deb.c @@ -19,7 +19,7 @@ int dpkg_deb_main(int argc, char **argv) archive_handle_t *tar_archive; llist_t *control_tar_llist = NULL; unsigned opt; - char *extract_dir = NULL; + const char *extract_dir = NULL; short argcount = 1; /* Setup the tar archive handle */ @@ -31,13 +31,13 @@ int dpkg_deb_main(int argc, char **argv) ar_archive->filter = filter_accept_list_reassign; #ifdef CONFIG_FEATURE_DEB_TAR_GZ - llist_add_to(&(ar_archive->accept), "data.tar.gz"); - llist_add_to(&control_tar_llist, "control.tar.gz"); + llist_add_to(&(ar_archive->accept), (char*)"data.tar.gz"); + llist_add_to(&control_tar_llist, (char*)"control.tar.gz"); #endif #ifdef CONFIG_FEATURE_DEB_TAR_BZ2 - llist_add_to(&(ar_archive->accept), "data.tar.bz2"); - llist_add_to(&control_tar_llist, "control.tar.bz2"); + llist_add_to(&(ar_archive->accept), (char*)"data.tar.bz2"); + llist_add_to(&control_tar_llist, (char*)"control.tar.bz2"); #endif opt_complementary = "?c--efXx:e--cfXx:f--ceXx:X--cefx:x--cefX"; @@ -60,7 +60,7 @@ int dpkg_deb_main(int argc, char **argv) * it should accept a second argument which specifies a * specific field to print */ ar_archive->accept = control_tar_llist; - llist_add_to(&(tar_archive->accept), "./control"); + llist_add_to(&(tar_archive->accept), (char*)"./control"); tar_archive->filter = filter_accept_list; tar_archive->action_data = data_extract_to_stdout; } |