diff --git a/http-push.c b/http-push.c
index 724720c562ab6da2b02e91b69f5365bc7bfee4f4..79d2c3860825ba1e68fff555b4433731d51c1b52 100644 (file)
--- a/http-push.c
+++ b/http-push.c
#include "diff.h"
#include "revision.h"
#include "exec_cmd.h"
+#include "remote.h"
#include <expat.h>
SHA1_Init(&request->c);
if (prev_posn>0) {
prev_posn = 0;
- lseek(request->local_fileno, SEEK_SET, 0);
+ lseek(request->local_fileno, 0, SEEK_SET);
ftruncate(request->local_fileno, 0);
}
}