Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const char *stripped (const char *name, int num_components)

unsigned long calculate_num_lines (const char *atatline, char which)
{
char *p = strchr (atatline, which);
const char *p = strchr (atatline, which);
if (!p)
return 1;
while (*p && *p != ',' && *p != ' ') p++;
Expand Down Expand Up @@ -187,7 +187,7 @@ int read_atatline (const char *atatline,
{
char *endptr;
unsigned long res;
char *p;
const char *p;

if (orig_offset) {
p = strchr (atatline, '-');
Expand Down
2 changes: 1 addition & 1 deletion src/rediff.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ static void copy_to (struct hunk *from, struct hunk *upto,
}

/* Deal with an added hunk. */
static long added_hunk (const char *meta, long offset, FILE *modify, FILE *t,
static long added_hunk (char *meta, long offset, FILE *modify, FILE *t,
unsigned long morig_count, unsigned long mnew_count)
{
long this_offset = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ FILE *xopen_seekable (const char *name, const char *mode)
/* unzip if needed */
FILE *xopen_unzip (const char *name, const char *mode)
{
char *p, *zprog = NULL;
const char *p, *zprog = NULL;
FILE *fi, *fo;
const size_t buflen = 64 * 1024;
char *buffer;
Expand Down
Loading