summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Straz <nstraz@redhat.com>2013-09-27 11:46:47 -0400
committerNathan Straz <nstraz@redhat.com>2013-10-02 14:11:33 -0400
commit3a99470c355c1d2d479c4a58ac83cd31f2d59c5f (patch)
tree936b6468d828561573944ed858cbb4e59be78438
parent837ff5d713c667f2ea0d111333098dad3175e9b8 (diff)
downloadqarsh-3a99470c355c1d2d479c4a58ac83cd31f2d59c5f.zip
qarsh-3a99470c355c1d2d479c4a58ac83cd31f2d59c5f.tar.gz
qarsh-3a99470c355c1d2d479c4a58ac83cd31f2d59c5f.tar.xz
Remove stat cache which isn't used anymore
-rw-r--r--qarshd.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/qarshd.c b/qarshd.c
index ca812cc..3db4e96 100644
--- a/qarshd.c
+++ b/qarshd.c
@@ -62,10 +62,6 @@ int sendfd = -1;
off_t recvsize = 0;
off_t received = 0;
-/* A mini cache for rstat so we can check it in pushfile */
-char *saved_path = NULL;
-struct stat saved_stat;
-
void
lprintf(int priority, const char *format, ...)
{
@@ -228,14 +224,6 @@ prepare_sendfile(struct qa_packet *qp)
return NULL;
}
-void
-save_stat(const char *path, const struct stat *sb)
-{
- if (saved_path) free(saved_path);
- saved_path = strdup(path);
- memcpy(&saved_stat, sb, sizeof saved_stat);
-}
-
struct qa_packet *
rstat(const char *path)
{
@@ -247,7 +235,6 @@ rstat(const char *path)
} else {
rp = make_qp_rstat(path, &sb);
}
- save_stat(path, &sb);
return rp;
}