From: Eric Biggers Date: Tue, 14 May 2013 03:18:23 +0000 (-0500) Subject: Minor cleanups X-Git-Tag: v1.4.0~68 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=ed0920c59c0dfe0ba82e61f2a03d4d1639a218b4 Minor cleanups --- diff --git a/src/extract_image.c b/src/extract_image.c index 39675350..20b44ee2 100644 --- a/src/extract_image.c +++ b/src/extract_image.c @@ -59,10 +59,6 @@ do_apply_op(struct wim_dentry *dentry, struct apply_args *args, (full_path_nchars - args->wim_source_path_nchars) + 1]; p = output_path; - /*print_dentry(dentry, NULL);*/ - /*ERROR("%"TS" %"TS, args->target, dentry->_full_path);*/ - /*ERROR("");*/ - tmemcpy(p, args->target, args->target_nchars); p += args->target_nchars; diff --git a/src/lookup_table.c b/src/lookup_table.c index e2ce02e7..998eb185 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -525,7 +525,7 @@ out: static u8 * -write_lookup_table_entry(struct wim_lookup_table_entry *lte, u8 *buf_p) +write_lookup_table_entry(const struct wim_lookup_table_entry *lte, u8 *buf_p) { buf_p = put_resource_entry(buf_p, <e->output_resource_entry); buf_p = put_u16(buf_p, lte->part_number); diff --git a/src/unix_apply.c b/src/unix_apply.c index 0b96055d..969b8d2b 100644 --- a/src/unix_apply.c +++ b/src/unix_apply.c @@ -383,8 +383,6 @@ unix_extract_directory(struct wim_dentry *dentry, const tchar *output_path, ret = tstat(output_path, &stbuf); if (ret == 0) { if (S_ISDIR(stbuf.st_mode)) { - /*if (!is_root)*/ - /*WARNING("`%s' already exists", output_path);*/ goto dir_exists; } else { ERROR("`%"TS"' is not a directory", output_path);