commit - a92a20426c3078772e9cc8671b4c58ed9a07b9bf
commit + 501834af38124c2210b66fa6705cc0890781b539
blob - 4e69daf4498d68765b5db8f7264410bc4a6d7b41
blob + 955f25359f4f5564010ae23da14cd2ad5b1c4b05
--- got/got.c
+++ got/got.c
static const struct got_error *
patch_progress(void *arg, const char *old, const char *new,
- unsigned char status, const struct got_error *error, long old_from,
- long old_lines, long new_from, long new_lines, long offset,
+ unsigned char status, const struct got_error *error, int old_from,
+ int old_lines, int new_from, int new_lines, int offset,
int ws_mangled, const struct got_error *hunk_err)
{
const char *path = new == NULL ? old : new;
fprintf(stderr, "%s: %s\n", getprogname(), error->msg);
if (offset != 0 || hunk_err != NULL || ws_mangled) {
- printf("@@ -%ld,%ld +%ld,%ld @@ ", old_from,
+ printf("@@ -%d,%d +%d,%d @@ ", old_from,
old_lines, new_from, new_lines);
if (hunk_err != NULL)
printf("%s\n", hunk_err->msg);
else if (offset != 0)
- printf("applied with offset %ld\n", offset);
+ printf("applied with offset %d\n", offset);
else
printf("hunk contains mangled whitespace\n");
}
blob - e72ded72ccf8311606f1c945e5241311de5cc179
blob + 3d08eea48e4a52a62094553e103775d364d22f90
--- include/got_patch.h
+++ include/got_patch.h
*/
typedef const struct got_error *(*got_patch_progress_cb)(void *,
const char *, const char *, unsigned char, const struct got_error *,
- long, long, long, long, long, int, const struct got_error *);
+ int, int, int, int, int, int, const struct got_error *);
/*
* Apply the (already opened) patch to the repository and register the