From d15b74198abab6fe0bb90c6ce524a747f251799f Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Tue, 4 Aug 2015 15:34:00 +0300 Subject: [PATCH] minor fixes; --- .gitignore | 5 ++++ debian/libsntl-dev.debhelper.log | 50 ------------------------------- debian/libsntl.postinst.debhelper | 5 ---- debian/libsntl.postrm.debhelper | 5 ---- debian/libsntl.substvars | 2 -- lib/connex.c | 2 +- tests/lv2ftpc.c | 48 ----------------------------- tests/lv2ftpd.c | 5 ++++ 8 files changed, 11 insertions(+), 111 deletions(-) delete mode 100644 debian/libsntl-dev.debhelper.log delete mode 100644 debian/libsntl.postinst.debhelper delete mode 100644 debian/libsntl.postrm.debhelper delete mode 100644 debian/libsntl.substvars diff --git a/.gitignore b/.gitignore index 1c67f6c..4601dcd 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,8 @@ coq lib/libsntllv2.pc lv2sd lv2sc +debian/substvars +tests/*.xml +tests/lv2ftpd +tests/lv2ftpc +tests/*.cfg diff --git a/debian/libsntl-dev.debhelper.log b/debian/libsntl-dev.debhelper.log deleted file mode 100644 index f283180..0000000 --- a/debian/libsntl-dev.debhelper.log +++ /dev/null @@ -1,50 +0,0 @@ -dh_autotools-dev_updateconfig -dh_auto_configure -dh_auto_build -dh_auto_test -dh_prep -dh_installdirs -dh_auto_install -dh_install -dh_installdocs -dh_installchangelogs -dh_installexamples -dh_installman -dh_installcatalogs -dh_installcron -dh_installdebconf -dh_installemacsen -dh_installifupdown -dh_installinfo -dh_pysupport -dh_installinit -dh_installmenu -dh_installmime -dh_installmodules -dh_installlogcheck -dh_installlogrotate -dh_installpam -dh_installppp -dh_installudev -dh_installwm -dh_installxfonts -dh_installgsettings -dh_bugfiles -dh_ucf -dh_lintian -dh_gconf -dh_icons -dh_perl -dh_usrlocal -dh_link -dh_compress -dh_fixperms -dh_strip -dh_makeshlibs -dh_shlibdeps -dh_installdeb -dh_gencontrol -dh_md5sums -dh_builddeb -dh_builddeb -dh_builddeb diff --git a/debian/libsntl.postinst.debhelper b/debian/libsntl.postinst.debhelper deleted file mode 100644 index 3d89d3e..0000000 --- a/debian/libsntl.postinst.debhelper +++ /dev/null @@ -1,5 +0,0 @@ -# Automatically added by dh_makeshlibs -if [ "$1" = "configure" ]; then - ldconfig -fi -# End automatically added section diff --git a/debian/libsntl.postrm.debhelper b/debian/libsntl.postrm.debhelper deleted file mode 100644 index 7f44047..0000000 --- a/debian/libsntl.postrm.debhelper +++ /dev/null @@ -1,5 +0,0 @@ -# Automatically added by dh_makeshlibs -if [ "$1" = "remove" ]; then - ldconfig -fi -# End automatically added section diff --git a/debian/libsntl.substvars b/debian/libsntl.substvars deleted file mode 100644 index fd5aa20..0000000 --- a/debian/libsntl.substvars +++ /dev/null @@ -1,2 +0,0 @@ -shlibs:Depends=libc6 (>= 2.2.5), libsexpr, libssl1.0.0 (>= 1.0.1), libtdata, libuuid1 (>= 2.20.1) -misc:Depends= diff --git a/lib/connex.c b/lib/connex.c index 870da90..b0ec444 100644 --- a/lib/connex.c +++ b/lib/connex.c @@ -139,7 +139,7 @@ static int __get_channels_list(void *cctx, sexp_t *sx) list_ent->type_id, list_ent->description); } ulen += snprintf(buf + ulen, maxlen - ulen, ")"); - msg->mhead.payload_length = ulen + sizeof(sntllv2_head_t); + msg->mhead.payload_length = ulen + 1; /* we're ready for messaging mode */ co->flags |= SNSX_MESSAGINGMODE; diff --git a/tests/lv2ftpc.c b/tests/lv2ftpc.c index 400f1ec..01a8294 100644 --- a/tests/lv2ftpc.c +++ b/tests/lv2ftpc.c @@ -156,53 +156,6 @@ int msg_send(chnl_t *ch, const char *mmbuf, size_t buflen, sxmsg_t *msg, char ** return mr; } -static pthread_mutex_t *lockarray; - -static void lock_callback(int mode, int type, char *file, int line) -{ - (void)file; - (void)line; - if (mode & CRYPTO_LOCK) { - pthread_mutex_lock(&(lockarray[type])); - } - else { - pthread_mutex_unlock(&(lockarray[type])); - } -} - -static unsigned long thread_id(void) -{ - unsigned long ret; - - ret=(unsigned long)pthread_self(); - return(ret); -} - -static void init_locks(void) -{ - int i; - - lockarray=(pthread_mutex_t *)OPENSSL_malloc(CRYPTO_num_locks() * - sizeof(pthread_mutex_t)); - for (i=0; i