summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2010-05-04 03:03:23 +0200
committerAndreas Gruenbacher <agruen@suse.de>2010-05-04 03:03:23 +0200
commit1b2ed3de079632dcf8c0a7b129e81011ae496ac0 (patch)
tree2dcf7f0d606da66f7191b1c06f5a8640348cad88
parent4e1404fe82afab295e8db71b4ffce6883ad16952 (diff)
downloadpatch-1b2ed3de079632dcf8c0a7b129e81011ae496ac0.tar.gz
Remove left-over debugging code
* src/pch.c (intuit_diff_type): Remove left-over debugging code.
-rw-r--r--ChangeLog2
-rw-r--r--src/pch.c8
2 files changed, 3 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index c131c24..37c84a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2009-05-04 Andreas Gruenbacher <agruen@suse.de>
+ * src/pch.c (intuit_diff_type): Remove left-over debugging code.
+
* src/pch.c (maybe_reverse): Allow to create and delete empty files.
(sha1_says_nonexistent): New function for recognizing the sha1
checksums of nonexistent and empty files.
diff --git a/src/pch.c b/src/pch.c
index 0f29d2b..7e35e68 100644
--- a/src/pch.c
+++ b/src/pch.c
@@ -583,14 +583,8 @@ intuit_diff_type (bool need_header, mode_t *p_file_type)
{
p_says_nonexistent[OLD] = sha1_says_nonexistent (s + 6, u);
p_says_nonexistent[NEW] = sha1_says_nonexistent (u + 2, v);
- /*printf("p_says_nonexistent[OLD]=%d "
- "p_says_nonexistent[NEW]=%d\n",
- p_says_nonexistent[OLD],
- p_says_nonexistent[NEW]);*/
- if (*(v = skip_spaces (v))) {
+ if (*(v = skip_spaces (v)))
p_mode[OLD] = p_mode[NEW] = fetchmode (v);
- //printf("p_mode[]=%06o\n", p_mode[OLD]);
- }
extended_headers = true;
}
}