freebsd-ports/graphics/flphoto/files/patch-http-md5.cxx
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

11 lines
353 B
C++

--- ./http-md5.cxx.orig 2012-12-22 12:42:25.000000000 +0100
+++ ./http-md5.cxx 2012-12-22 12:42:28.000000000 +0100
@@ -120,7 +120,7 @@
{
int i; /* Looping var */
char *md5ptr; /* Pointer into MD5 string */
- static char *hex = "0123456789abcdef"; /* Hex digits */
+ static char const *hex = "0123456789abcdef"; /* Hex digits */
/*