summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-31 13:54:25 +0100
committerlouiz’ <louiz@louiz.org>2016-10-31 14:03:37 +0100
commitae02e58b9dc276b247be84e1d708ca50a1f5bbd0 (patch)
treeef20d9624c010829a3187db179409662c1be72a0 /louloulibs
parent8c26b4d19f6d3464050a34c782694059b2a7b013 (diff)
downloadbiboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.tar.gz
biboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.tar.bz2
biboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.tar.xz
biboumi-ae02e58b9dc276b247be84e1d708ca50a1f5bbd0.zip
Some cleanups
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/utils/encoding.cpp8
-rw-r--r--louloulibs/xmpp/xmpp_component.cpp3
2 files changed, 3 insertions, 8 deletions
diff --git a/louloulibs/utils/encoding.cpp b/louloulibs/utils/encoding.cpp
index 712028e..cb953c0 100644
--- a/louloulibs/utils/encoding.cpp
+++ b/louloulibs/utils/encoding.cpp
@@ -196,12 +196,8 @@ namespace utils
outbuf_ptr++;
done = true;
break;
- case E2BIG:
- // This should never happen
- done = true;
- break;
- default:
- // This should happen even neverer
+ case E2BIG: // This should never happen
+ default: // This should happen even neverer
done = true;
break;
}
diff --git a/louloulibs/xmpp/xmpp_component.cpp b/louloulibs/xmpp/xmpp_component.cpp
index 17fde20..3ac617c 100644
--- a/louloulibs/xmpp/xmpp_component.cpp
+++ b/louloulibs/xmpp/xmpp_component.cpp
@@ -222,9 +222,8 @@ void XmppComponent::close_document()
this->doc_open = false;
}
-void XmppComponent::handle_handshake(const Stanza& stanza)
+void XmppComponent::handle_handshake(const Stanza&)
{
- (void)stanza;
this->authenticated = true;
this->ever_auth = true;
log_info("Authenticated with the XMPP server");