summaryrefslogtreecommitdiff
path: root/rpmio/rpmfileutil.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-05-06 10:12:51 +0300
committerPanu Matilainen <pmatilai@redhat.com>2022-05-06 10:14:09 +0300
commitb204a9037bc25ac2bc2c511b0046234be72c5498 (patch)
tree74f4102e7021de18ed82040d8f51cdc3ac33c3b0 /rpmio/rpmfileutil.c
parent130c14681accda6136831d5610e814e41b9308e3 (diff)
downloadrpm-b204a9037bc25ac2bc2c511b0046234be72c5498.tar.gz
Kick out 21 year old commented-out debugging fprintf()'s
Diffstat (limited to 'rpmio/rpmfileutil.c')
-rw-r--r--rpmio/rpmfileutil.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/rpmio/rpmfileutil.c b/rpmio/rpmfileutil.c
index 4a939dbfe..d7cfa2f85 100644
--- a/rpmio/rpmfileutil.c
+++ b/rpmio/rpmfileutil.c
@@ -227,10 +227,8 @@ char *rpmCleanPath(char * path)
if (path == NULL)
return NULL;
-/*fprintf(stderr, "*** RCP %s ->\n", path); */
s = t = te = path;
while (*s != '\0') {
-/*fprintf(stderr, "*** got \"%.*s\"\trest \"%s\"\n", (t-path), path, s); */
switch (*s) {
case ':': /* handle url's */
if (s[1] == '/' && s[2] == '/') {
@@ -246,7 +244,6 @@ char *rpmCleanPath(char * path)
{};
if (se < t && *se == '/') {
te = se;
-/*fprintf(stderr, "*** next pdir \"%.*s\"\n", (te-path), path); */
}
while (s[1] == '/')
s++;
@@ -261,7 +258,6 @@ char *rpmCleanPath(char * path)
/* as "../.", and the last '.' is stripped. This */
/* would not be correct processing. */
if (begin && s[1] == '.' && (s[2] == '/' || s[2] == '\0')) {
-/*fprintf(stderr, " leading \"..\"\n"); */
*t++ = *s++;
break;
}
@@ -289,7 +285,6 @@ char *rpmCleanPath(char * path)
if (te > path)
for (--te; te > path && *te != '/'; te--)
{};
-/*fprintf(stderr, "*** prev pdir \"%.*s\"\n", (te-path), path); */
s++;
s++;
continue;
@@ -307,7 +302,6 @@ char *rpmCleanPath(char * path)
t--;
*t = '\0';
-/*fprintf(stderr, "\t%s\n", path); */
return path;
}