Minor cleanups
authorEric Biggers <ebiggers3@gmail.com>
Tue, 14 May 2013 03:18:23 +0000 (22:18 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 14 May 2013 03:18:23 +0000 (22:18 -0500)
src/extract_image.c
src/lookup_table.c
src/unix_apply.c

index 3967535..20b44ee 100644 (file)
@@ -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;
 
index e2ce02e..998eb18 100644 (file)
@@ -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, &lte->output_resource_entry);
        buf_p = put_u16(buf_p, lte->part_number);
index 0b96055..969b8d2 100644 (file)
@@ -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);