• R/O
  • HTTP
  • SSH
  • HTTPS

lha: Commit


Commit MetaInfo

Revision62e045aaf28eb72fe746540bc50a3f19369e7c3e (tree)
Time2016-10-05 23:33:46
AuthorKoji Arai <jca02266@gmai...>
CommiterKoji Arai

Log Message

Avoid compile error on libapplefile

Thanks to hirotosakai

Change Summary

Incremental Difference

--- a/src/lhext.c
+++ b/src/lhext.c
@@ -30,7 +30,7 @@ static void add_dirinfo(char* name, LzHeader* hdr);
3030 static void adjust_dirinfo();
3131
3232 #ifdef HAVE_LIBAPPLEFILE
33-static boolean decode_macbinary(FILE *ofp, size_t size, const char *outPath);
33+static boolean decode_macbinary(FILE *ofp, off_t size, const char *outPath);
3434 #endif
3535
3636 /* ------------------------------------------------------------------------ */
@@ -736,7 +736,7 @@ decode_macbinary(ofp, size, outPath)
736736 af_file_t *afp = NULL;
737737 FILE *ifp = NULL;
738738 unsigned char *datap;
739- off_t dlen;
739+ size_t dlen;
740740
741741 if ((afp = af_open(temporary_name)) != NULL) {
742742 /* fetch datafork */
Show on old repository browser