Removed two newlines from the end of log messages which created empty lines.
authorSven-Haegar Koch <haegar@sdinet.de>
Fri, 27 May 2011 23:36:10 +0000 (01:36 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 28 May 2011 13:24:39 +0000 (15:24 +0200)
src/gcrypt/rsa.c
src/node.c

index a729591..ceb1638 100644 (file)
@@ -267,7 +267,7 @@ size_t rsa_size(rsa_t *rsa) {
  */
 
 // TODO: get rid of this macro, properly clean up gcry_ structures after use
-#define check(foo) { gcry_error_t err = (foo); if(err) {logger(LOG_ERR, "gcrypt error %s/%s at %s:%d\n", gcry_strsource(err), gcry_strerror(err), __FILE__, __LINE__); return false; }}
+#define check(foo) { gcry_error_t err = (foo); if(err) {logger(LOG_ERR, "gcrypt error %s/%s at %s:%d", gcry_strsource(err), gcry_strerror(err), __FILE__, __LINE__); return false; }}
 
 bool rsa_public_encrypt(rsa_t *rsa, void *in, size_t len, void *out) {
        gcry_mpi_t inmpi;
index 3ec9fab..dee7aad 100644 (file)
@@ -144,7 +144,7 @@ node_t *lookup_node_udp(const sockaddr_t *sa) {
 
 void update_node_udp(node_t *n, const sockaddr_t *sa) {
        if(n == myself) {
-               logger(LOG_WARNING, "Trying to update UDP address of myself!\n");
+               logger(LOG_WARNING, "Trying to update UDP address of myself!");
                return;
        }