Skip to content

Commit 2a30911

Browse files
committed
Mingw warning fix, update (C)
1 parent 9a76ffd commit 2a30911

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

xdelta3/testing/file.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ class ExtFile {
313313
static int static_counter = 0;
314314
pid_t pid = getpid();
315315
char buf[64];
316-
snprintf(buf, 64, "/tmp/regtest.%d.%d", pid, static_counter++);
316+
xoff_t xpid = pid;
317+
snprintf(buf, 64, "/tmp/regtest.%"Q"u.%d", xpid, static_counter++);
317318
filename_.append(buf);
318319
unlink(filename_.c_str());
319320
}

xdelta3/xdelta3.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* xdelta 3 - delta compression tools and library
2-
* Copyright (C) 2001, 2003, 2004, 2005, 2006, 2007,
3-
* 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015. Joshua P. MacDonald
2+
* Copyright (C) Joshua P. MacDonald
43
*
54
* This program is free software; you can redistribute it and/or modify
65
* it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)