Comment fixes
authorEric Biggers <ebiggers3@gmail.com>
Tue, 4 Sep 2012 14:33:29 +0000 (09:33 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 4 Sep 2012 14:33:29 +0000 (09:33 -0500)
src/hardlink.c
src/modify.c
src/resource.c
src/write.c

index c2f0358f8529a49aa827911cfcb34ebb0e4b7b68..5012ab7eadae25e7cdbaac854eb8af1f3e8b3d92 100644 (file)
  *         dentry               |           |                
  *        /     \          -----------  -----------           
  *        |      dentry<---|  struct  | |  struct  |---> dentry
- *        \     /          |inode| |inode|       
+ *        \     /          |  inode   | |  inode   |       
  *         dentry          ------------ ------------
  *                              ^           ^
  *                              |           |
  *                              |           |                   dentry
  *                         -----------  -----------            /      \
  *               dentry<---|  struct  | |  struct  |---> dentry        dentry
- *              /          |inode| |inode|           \      /
+ *              /          |  inode   | |  inode   |           \      /
  *         dentry          ------------ ------------            dentry
  *                              ^           ^
  *                              |           |
  *                            -----------------
- *    inode_table->array | idx 0 | idx 1 | 
+ *        inode_table->array  | idx 0 | idx 1 | 
  *                            -----------------
  */
 
index b5342a2ffa9084b27e729cf1e533f1c2256474ff..0d3c05a59f36b2472ca8880135a59b6c7d61ce72 100644 (file)
@@ -44,7 +44,7 @@
  * the WIM image. */
 #define WIMLIB_ADD_IMAGE_FLAG_ROOT 0x80000000
 
-void destroy_image_metadata(struct image_metadata *imd,struct lookup_table *lt)
+void destroy_image_metadata(struct image_metadata *imd, struct lookup_table *lt)
 {
        free_dentry_tree(imd->root_dentry, lt);
        free_security_data(imd->security_data);
index 98dc901f74068880256d9c1465a3f8a0d3f60dc9..11e8c7dc6cc91bf3fe901567bfb427e65edeb0a4 100644 (file)
@@ -1334,8 +1334,9 @@ int write_metadata_resource(WIMStruct *w)
        if (ret != 0)
                goto out;
 
-       /* It's very likely the SHA1 message digest of the metadata resource, so
-        * re-insert the lookup table entry into the lookup table. */
+       /* It's very likely the SHA1 message digest of the metadata resource
+        * changed, so re-insert the lookup table entry into the lookup table.
+        * */
        lookup_table_unlink(w->lookup_table, lte);
        lookup_table_insert(w->lookup_table, lte);
 
index e06ad05e2fa401dbd96650d6348b491401c9c6ae..7f92366d2e57bf6a63d2d46b39940729eb112a60 100644 (file)
@@ -248,7 +248,6 @@ err:
 /* Write the file resources for the current image. */
 static int write_file_resources(WIMStruct *w)
 {
-
        DEBUG("Writing file resources for image %u.", w->current_image);
        return for_dentry_in_tree(wim_root_dentry(w), write_dentry_resources, w);
 }