9be02aeebf
http://www.cabextract.org.uk/#changes ok merdely@, sthen@
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
$OpenBSD: patch-src_cabextract_c,v 1.1 2010/07/31 00:30:27 kevlo Exp $
|
|
--- src/cabextract.c.orig Mon Jul 12 22:53:12 2010
|
|
+++ src/cabextract.c Fri Jul 30 16:48:06 2010
|
|
@@ -229,7 +229,7 @@ static int cabx_read(struct mspack_file *file, void *b
|
|
static int cabx_write(struct mspack_file *file, void *buffer, int bytes);
|
|
static int cabx_seek(struct mspack_file *file, off_t offset, int mode);
|
|
static off_t cabx_tell(struct mspack_file *file);
|
|
-static void cabx_msg(struct mspack_file *file, char *format, ...);
|
|
+static void cabx_msg(struct mspack_file *file, const char *format, ...);
|
|
static void *cabx_alloc(struct mspack_system *this, size_t bytes);
|
|
static void cabx_free(void *buffer);
|
|
static void cabx_copy(void *src, void *dest, size_t bytes);
|
|
@@ -1191,7 +1191,7 @@ static off_t cabx_tell(struct mspack_file *file) {
|
|
#endif
|
|
}
|
|
|
|
-static void cabx_msg(struct mspack_file *file, char *format, ...) {
|
|
+static void cabx_msg(struct mspack_file *file, const char *format, ...) {
|
|
va_list ap;
|
|
if (file) {
|
|
fprintf(stderr, "%s: ", ((struct mspack_file_p *) file)->name);
|