[Pound Mailing List] Compile warning pound 2.7e

Maurice Smulders <[email protected]>
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
Hello,
I see the following compile warning in any 2.7 release, including 2.7e:
svc.c: In function 't_find':
svc.c:85:5: warning: passing argument 1 of 'lh_retrieve' from incompatible pointer type [enabled by default]
/home/msmulders/source/i2k/i12.2/mcb/build/powerpc-3v10v26-linux-gnuspe/installed/usr/include/openssl/lhash.h:179:7: note: expected 'struct _LHASH *' but argument is of type 'struct lhash_st_TABNODE * const'
The attached patch file fixes this.
Kind regards,
Maurice

----------------------------------------------------------------------
The information contained in this transmission may be confidential. Any disclosure, copying, or further distribution of confidential information is not permitted unless such privilege is explicitly granted in writing by Quantum. Quantum reserves the right to have electronic communications, including email and attachments, sent across its networks filtered through anti virus and spam software programs and retain such messages in order to comply with applicable data security and retention requirements. Quantum is not responsible for the proper and complete transmission of the substance of this communication or for any delay in its receipt.
001_svc.patch (text/x-patch, 443 B)
diff -Naur old/svc.c src/svc.c
--- old/svc.c	2014-04-21 05:16:08.000000000 -0600
+++ src/svc.c	2014-05-31 12:56:54.243853455 -0600
@@ -82,7 +82,11 @@
     TABNODE t, *res;
 
     t.key = key;
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+    if((res = LHM_lh_retrieve(TABNODE,tab, &t)) != NULL) {
+#else
     if((res = (TABNODE *)lh_retrieve(tab, &t)) != NULL) {
+#endif
         res->last_acc = time(NULL);
         return res->content;
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.