Skip to content

Commit

Permalink
Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhasegawa-bc committed Jul 18, 2024
1 parent 1ac32e3 commit 1cfa61d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/compressor.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#endif

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef ENABLE_LZO
# include <lzo/lzo1x.h>
Expand Down
2 changes: 1 addition & 1 deletion src/squashmerge.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ int run_xdelta3(struct mmap_file* patch, struct mmap_file* output,
}

if (execlp("xdelta3",
"xdelta3", "-c", "-d", "-s", input_path, 0) == -1)
"xdelta3", "-c", "-d", "-s", input_path, NULL) == -1)
{
fprintf(stderr, "execlp() failed\n"
"\terrno: %s\n", strerror(errno));
Expand Down

0 comments on commit 1cfa61d

Please # to comment.