1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/graphics/flphoto/files/patch-espmsg.c
Matthias Andree f3773e93eb Fix build with CUPS [1], and assorted other fixes:
- #include <cups/ppd.h> [1]
- remove gphoto2 and fltk ABI versions from LIB_DEPENDS, to quiet portlint
- fix int-vs-long format string Clang compiler warning in espmsg.c
- declare static char *hex const in http-md5.cxx to fix non-writable
  string literal Clang warning

Submitted by:	Hans Petter Selasky [1]
2012-12-22 11:51:49 +00:00

12 lines
307 B
C

--- ./espmsg.c.orig 2005-01-23 04:52:44.000000000 +0100
+++ ./espmsg.c 2012-12-22 12:41:39.000000000 +0100
@@ -766,7 +766,7 @@
*bufptr++ = '&';
*bufptr = '\0';
- sprintf(length, "%d", bufptr - buffer);
+ sprintf(length, "%ld", (long)(bufptr - buffer));
/*
* Send the request...