<pre style='margin:0'>
Craig Treleaven (ctreleaven) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/10d2b542e2711aab9aa32e5727c21d528e161ee5">https://github.com/macports/macports-ports/commit/10d2b542e2711aab9aa32e5727c21d528e161ee5</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 10d2b542e2711aab9aa32e5727c21d528e161ee5
</span>Author: Craig Treleaven <ctreleaven@macports.org>
AuthorDate: Thu Feb 11 19:22:17 2021 -0500
<span style='display:block; white-space:pre;color:#404040;'> uShare: delete patches
</span>---
net/ushare/files/patch-add_std_includes.diff | 70 ----------
net/ushare/files/patch-configure.diff | 11 --
net/ushare/files/patch-ushare-upnp-build-fix.diff | 161 ----------------------
3 files changed, 242 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/ushare/files/patch-add_std_includes.diff b/net/ushare/files/patch-add_std_includes.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 6e5da16d2b6..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/ushare/files/patch-add_std_includes.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,70 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-See https://bugs.archlinux.org/task/24866
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Comment by Anton Komolov (xRemaLx) - Tuesday, 21 February 2012, 06:17 GMT
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-On my system (64bit), I use this patch for a month. No more segfaults :)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Problem is solved by the patch: mixing 32-bit and 64 bit pointers. This happens
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-if the compiler does not find a definition of the standard functions in header
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-files. On a 64 bit system automatically uses the 64 bit function, even though
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-the program is 32 bit.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/cds.c 2007-12-09 16:03:36.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/cds.c 2012-01-26 05:14:03.317360310 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -20,6 +20,8 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <stdio.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnp.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnptools.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/cms.c 2007-12-09 16:03:36.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/cms.c 2012-01-26 05:15:33.236991387 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -20,6 +20,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnp.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnptools.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/http.c 2012-01-26 05:27:44.073992912 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/http.c 2012-01-26 05:17:31.756505126 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -25,6 +25,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <errno.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <unistd.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <errno.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/presentation.c 2007-12-09 16:03:36.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/presentation.c 2012-01-26 05:19:41.635972259 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -19,6 +19,8 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <stdio.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #if HAVE_LANGINFO_CODESET
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # include <langinfo.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/mime.c 2007-12-09 16:03:36.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/mime.c 2012-01-26 05:23:54.251602492 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -21,6 +21,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <stdio.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "mime.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "ushare.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/services.c 2007-12-09 16:03:36.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/services.c 2012-01-26 05:21:28.572200186 +0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -20,6 +20,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnp.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnptools.h>
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/ushare/files/patch-configure.diff b/net/ushare/files/patch-configure.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index cffe506584f..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/ushare/files/patch-configure.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- configure 2007-12-09 08:03:36.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ configure.new 2008-01-12 14:41:04.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -720,7 +720,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- append_config "EXTRALIBS=$extralibs"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--append_config "OPTFLAGS=$CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+append_config "CFLAGS=$CFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- append_config "LDFLAGS=$LDFLAGS"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- append_config "INSTALL=$INSTALL"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/net/ushare/files/patch-ushare-upnp-build-fix.diff b/net/ushare/files/patch-ushare-upnp-build-fix.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 129f4696a22..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/net/ushare/files/patch-ushare-upnp-build-fix.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,161 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-update libupnp to 1.6.8, broke compiling of uShare
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-See https://dev.openwrt.org/ticket/8296
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-and https://lists.rpmfusion.org/pipermail/rpmfusion-developers/2011-September/010113.html
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff -wbBur ushare-1.1a/src/http.c ushare-1.1a.my/src/http.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/http.c 2007-12-09 13:03:36.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/http.c 2010-10-29 11:13:07.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -77,8 +77,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- info->content_type = ixmlCloneDOMString (content_type);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--static int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_get_info (const char *filename, struct File_Info *info)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_get_info (const char *filename, struct File_Info *info)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- extern struct ushare_t *ut;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- struct upnp_entry_t *entry = NULL;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -197,8 +196,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ((UpnpWebFileHandle) file);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--static UpnpWebFileHandle
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_open (const char *filename, enum UpnpOpenFileMode mode)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+UpnpWebFileHandle http_open (const char *filename, enum UpnpOpenFileMode mode)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- extern struct ushare_t *ut;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- struct upnp_entry_t *entry = NULL;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -251,8 +249,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return ((UpnpWebFileHandle) file);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--static int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_read (UpnpWebFileHandle fh, char *buf, size_t buflen)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_read (UpnpWebFileHandle fh, char *buf, size_t buflen)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- struct web_file_t *file = (struct web_file_t *) fh;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ssize_t len = -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -286,8 +283,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return len;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--static int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_write (UpnpWebFileHandle fh __attribute__((unused)),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_write (UpnpWebFileHandle fh __attribute__((unused)),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- char *buf __attribute__((unused)),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size_t buflen __attribute__((unused)))
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -296,8 +292,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--static int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_seek (UpnpWebFileHandle fh, off_t offset, int origin)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_seek (UpnpWebFileHandle fh, off_t offset, int origin)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- struct web_file_t *file = (struct web_file_t *) fh;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- off_t newpos = -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -371,8 +366,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--static int
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--http_close (UpnpWebFileHandle fh)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_close (UpnpWebFileHandle fh)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- struct web_file_t *file = (struct web_file_t *) fh;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -402,13 +396,3 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return 0;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--struct UpnpVirtualDirCallbacks virtual_dir_callbacks =
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- http_get_info,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- http_open,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- http_read,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- http_write,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- http_seek,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- http_close
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- };
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff -wbBur ushare-1.1a/src/http.h ushare-1.1a.my/src/http.h
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/http.h 2007-12-09 13:03:36.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/http.h 2010-10-29 11:13:11.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -25,6 +25,13 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnp.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <upnp/upnptools.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--struct UpnpVirtualDirCallbacks virtual_dir_callbacks;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_close (UpnpWebFileHandle fh);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_write (UpnpWebFileHandle fh __attribute__((unused)),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *buf __attribute__((unused)),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t buflen __attribute__((unused)));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_seek (UpnpWebFileHandle fh, off_t offset, int origin);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+UpnpWebFileHandle http_open (const char *filename, enum UpnpOpenFileMode mode);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_read (UpnpWebFileHandle fh, char *buf, size_t buflen);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+int http_get_info (const char *filename, struct File_Info *info);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #endif /* _HTTP_H_ */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff -wbBur ushare-1.1a/src/ushare.c ushare-1.1a.my/src/ushare.c
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/ushare.c 2007-12-09 13:03:36.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/ushare.c 2010-10-29 11:17:45.000000000 +0000
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -188,7 +188,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (strcmp (request->DevUDN + 5, ut->udn))
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- return;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- ip = request->CtrlPtIPAddr.s_addr;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ip = (*(struct sockaddr_in*)&request->CtrlPtIPAddr).sin_addr.s_addr;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ip = ntohl (ip);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sprintf (val, "%d.%d.%d.%d",
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- (ip >> 24) & 0xFF, (ip >> 16) & 0xFF, (ip >> 8) & 0xFF, ip & 0xFF);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -348,7 +348,47 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- UpnpEnableWebserver (TRUE);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- res = UpnpSetVirtualDirCallbacks (&virtual_dir_callbacks);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = UpnpVirtualDir_set_WriteCallback(http_write);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (res != UPNP_E_SUCCESS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error (_("Cannot set virtual directory callbacks\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ free (description);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = UpnpVirtualDir_set_GetInfoCallback(http_get_info);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (res != UPNP_E_SUCCESS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error (_("Cannot set virtual directory callbacks\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ free (description);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = UpnpVirtualDir_set_ReadCallback(http_read);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (res != UPNP_E_SUCCESS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error (_("Cannot set virtual directory callbacks\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ free (description);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = UpnpVirtualDir_set_OpenCallback(http_open);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (res != UPNP_E_SUCCESS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error (_("Cannot set virtual directory callbacks\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ free (description);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = UpnpVirtualDir_set_SeekCallback(http_seek);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (res != UPNP_E_SUCCESS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ log_error (_("Cannot set virtual directory callbacks\n"));
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ free (description);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return -1;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ res = UpnpVirtualDir_set_CloseCallback(http_close);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if (res != UPNP_E_SUCCESS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- log_error (_("Cannot set virtual directory callbacks\n"));
</span></pre><pre style='margin:0'>
</pre>