mirror of
https://github.com/clearlinux/bsdiff.git
synced 2026-06-16 02:35:51 +00:00
Run clang-format to fix code style
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ struct header_v20 {
|
||||
uint64_t extra_length;
|
||||
uint64_t old_file_length;
|
||||
uint64_t new_file_length;
|
||||
uint64_t mtime; /* unused */
|
||||
uint64_t mtime; /* unused */
|
||||
uint32_t file_mode;
|
||||
uint32_t file_owner;
|
||||
uint32_t file_group;
|
||||
|
||||
+9
-9
@@ -45,20 +45,20 @@ __FBSDID
|
||||
#include <lzma.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <endian.h>
|
||||
#include <grp.h>
|
||||
#include <pthread.h>
|
||||
#include <pwd.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
#include <endian.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
#include <pthread.h>
|
||||
#include <assert.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "bsheader.h"
|
||||
|
||||
|
||||
+3
-3
@@ -30,12 +30,12 @@
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "bsdiff.h"
|
||||
#include "bsheader.h"
|
||||
@@ -110,7 +110,7 @@ static void print_v20_header(struct header_v20 *h, FILE *f)
|
||||
if (h->mtime == 0) {
|
||||
printf("Mtime:\t(not set, as expected)\n");
|
||||
} else {
|
||||
printf("Mtime:\t%s (probably means there is a bug)\n", ctime((const time_t*)&h->mtime));
|
||||
printf("Mtime:\t%s (probably means there is a bug)\n", ctime((const time_t *)&h->mtime));
|
||||
}
|
||||
printf("Mode:\t%4o\n", h->file_mode);
|
||||
printf("Uid:\t%d\n", h->file_owner);
|
||||
|
||||
+14
-14
@@ -44,23 +44,23 @@ __FBSDID
|
||||
#include <lzma.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
#include <stdint.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <pwd.h>
|
||||
#include <grp.h>
|
||||
#include <fcntl.h>
|
||||
#include <limits.h>
|
||||
#include <linux/fs.h>
|
||||
#include <assert.h>
|
||||
#include <endian.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <grp.h>
|
||||
#include <limits.h>
|
||||
#include <linux/fs.h>
|
||||
#include <pwd.h>
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <zlib.h>
|
||||
|
||||
#include "bsheader.h"
|
||||
|
||||
@@ -259,7 +259,7 @@ typedef struct {
|
||||
#ifdef BSDIFF_WITH_BZIP2
|
||||
BZFILE *bz2; /* method = BZIP2 */
|
||||
#endif
|
||||
gzFile gz; /* method = GZIP */
|
||||
gzFile gz; /* method = GZIP */
|
||||
#ifdef BSDIFF_WITH_LZMA
|
||||
xzfile *xz; /* method = XZ */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user