This repository was archived by the owner on Aug 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Expand file tree Collapse file tree 4 files changed +27
-27
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ struct header_v20 {
5858 uint64_t extra_length ;
5959 uint64_t old_file_length ;
6060 uint64_t new_file_length ;
61- uint64_t mtime ; /* unused */
61+ uint64_t mtime ; /* unused */
6262 uint32_t file_mode ;
6363 uint32_t file_owner ;
6464 uint32_t file_group ;
Original file line number Diff line number Diff line change @@ -45,20 +45,20 @@ __FBSDID
4545#include <lzma.h>
4646#endif
4747
48+ #include <assert.h>
49+ #include <endian.h>
50+ #include <grp.h>
51+ #include <pthread.h>
52+ #include <pwd.h>
53+ #include <stdint.h>
4854#include <stdio.h>
4955#include <stdlib.h>
5056#include <string.h>
57+ #include <sys/mman.h>
58+ #include <sys/stat.h>
59+ #include <sys/types.h>
5160#include <unistd.h>
5261#include <zlib.h>
53- #include <endian.h>
54- #include <stdint.h>
55- #include <sys/types.h>
56- #include <sys/stat.h>
57- #include <pwd.h>
58- #include <grp.h>
59- #include <pthread.h>
60- #include <assert.h>
61- #include <sys/mman.h>
6262
6363#include "bsheader.h"
6464
Original file line number Diff line number Diff line change 3030 */
3131
3232#define _GNU_SOURCE
33+ #include <assert.h>
3334#include <stdio.h>
3435#include <stdlib.h>
35- #include <unistd.h>
3636#include <string.h>
37- #include <assert.h>
3837#include <time.h>
38+ #include <unistd.h>
3939
4040#include "bsdiff.h"
4141#include "bsheader.h"
@@ -110,7 +110,7 @@ static void print_v20_header(struct header_v20 *h, FILE *f)
110110 if (h -> mtime == 0 ) {
111111 printf ("Mtime:\t(not set, as expected)\n" );
112112 } else {
113- printf ("Mtime:\t%s (probably means there is a bug)\n" , ctime ((const time_t * )& h -> mtime ));
113+ printf ("Mtime:\t%s (probably means there is a bug)\n" , ctime ((const time_t * )& h -> mtime ));
114114 }
115115 printf ("Mode:\t%4o\n" , h -> file_mode );
116116 printf ("Uid:\t%d\n" , h -> file_owner );
Original file line number Diff line number Diff line change @@ -44,23 +44,23 @@ __FBSDID
4444#include <lzma.h>
4545#endif
4646
47- #include <stdlib.h>
48- #include <stdio.h>
49- #include <string.h>
50- #include <unistd.h>
51- #include <zlib.h>
52- #include <stdint.h>
53- #include <sys/types.h>
54- #include <sys/stat.h>
55- #include <pwd.h>
56- #include <grp.h>
57- #include <fcntl.h>
58- #include <limits.h>
59- #include <linux/fs.h>
6047#include <assert.h>
6148#include <endian.h>
6249#include <errno.h>
50+ #include <fcntl.h>
51+ #include <grp.h>
52+ #include <limits.h>
53+ #include <linux/fs.h>
54+ #include <pwd.h>
55+ #include <stdint.h>
56+ #include <stdio.h>
57+ #include <stdlib.h>
58+ #include <string.h>
6359#include <sys/mman.h>
60+ #include <sys/stat.h>
61+ #include <sys/types.h>
62+ #include <unistd.h>
63+ #include <zlib.h>
6464
6565#include "bsheader.h"
6666
@@ -259,7 +259,7 @@ typedef struct {
259259#ifdef BSDIFF_WITH_BZIP2
260260 BZFILE * bz2 ; /* method = BZIP2 */
261261#endif
262- gzFile gz ; /* method = GZIP */
262+ gzFile gz ; /* method = GZIP */
263263#ifdef BSDIFF_WITH_LZMA
264264 xzfile * xz ; /* method = XZ */
265265#endif
You can’t perform that action at this time.
0 commit comments