Skip to content

Commit

Permalink
xmpp: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent 5fd8711 commit ae89b59
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 28 deletions.
12 changes: 6 additions & 6 deletions src/modules/xmpp/sha.c
Expand Up @@ -12,7 +12,7 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*
* Gabber
* Copyright (C) 1999-2000 Dave Smith & Julian Missig
*
Expand All @@ -23,20 +23,20 @@
*/


/*
/*
Implements the Secure Hash Algorithm (SHA1)
Copyright (C) 1999 Scott G. Miller
Released under the terms of the GNU General Public License v2
see file COPYING for details
Credits:
Robert Klep <robert@ilse.nl> -- Expansion function fix
Credits:
Robert Klep <robert@ilse.nl> -- Expansion function fix
Thomas "temas" Muldowney <temas@box5.net>:
-- shahash() for string fun
-- Will add the int32 stuff in a few
---
FIXME: This source takes int to be a 32 bit integer. This
may vary from system to system. I'd use autoconf if I was familiar
Expand Down Expand Up @@ -117,7 +117,7 @@ int sha_hash(int *data, int *hash)
W[t] = rol1(x);
}

/* SHA1 main loop (t=0 to 79)
/* SHA1 main loop (t=0 to 79)
This is broken down into four subloops in order to use
the correct round function and constant */
for(t = 0; t < 20; t++) {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/xmpp/xmpp.c
Expand Up @@ -285,7 +285,7 @@ static void xmpp_process(int rank)

/*********************************************************************************/

/*! \brief Relay a MESSAGE to a SIP client
/*! \brief Relay a MESSAGE to a SIP client
\todo This assumes that a message is text/plain, which is not always the case with
XMPP messages. We should propably also set the character set, as all
SIP clients doesn't assume utf8 for text/plain
Expand Down
4 changes: 2 additions & 2 deletions src/modules/xmpp/xmpp_api.c
Expand Up @@ -19,9 +19,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*
*
*/
/*! \file
/*! \file
* \brief Kamailio XMPP :: API
* \ingroup xmpp
*/
Expand Down
2 changes: 1 addition & 1 deletion src/modules/xmpp/xmpp_api.h
Expand Up @@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
*
*
*/

/*! \file
Expand Down
2 changes: 1 addition & 1 deletion src/modules/xmpp/xmpp_server.c
Expand Up @@ -202,7 +202,7 @@ static struct xmpp_connection *conn_find_domain(char *domain, int type)
static struct xmpp_connection *conn_find_fd(int fd)
{
struct xmpp_connection *conn;
for (conn = conn_list; conn; conn = conn->next)
if (conn->fd == fd)
return conn;
Expand Down
6 changes: 3 additions & 3 deletions src/modules/xmpp/xode.h
Expand Up @@ -90,7 +90,7 @@ extern "C"


/* xode_pool_cleaner - callback type which is associated
with a pool entry; invoked when the pool entry is
with a pool entry; invoked when the pool entry is
free'd */
typedef void (*xode_pool_cleaner)(void *arg);

Expand Down Expand Up @@ -190,8 +190,8 @@ extern "C"
#define XODE_TYPE_LAST 2
#define XODE_TYPE_UNDEF -1

/* --------------------------------------------------------------------------
Node structure. Do not use directly! Always use accessors macros
/* --------------------------------------------------------------------------
Node structure. Do not use directly! Always use accessors macros
and methods!
-------------------------------------------------------------------------- */
typedef struct xode_struct
Expand Down
12 changes: 6 additions & 6 deletions src/modules/xmpp/xpool.c
Expand Up @@ -15,22 +15,22 @@
*
* Jabber
* Copyright (C) 1998-1999 The Jabber Team http://jabber.org/
*
*
* 2/27/00:3am, random plans by jer
*
*
* ok based on gprof, we really need some innovation here... my thoughs are this:
*
*
* most things are strings, so have a string-based true-blue garbage collector
* one big global hash containing all the strings created by any pstrdup, returning const char *
* a refcount on each string block
* when a pool is freed, it moves down the refcount
* garbage collector collects pools on the free stack, and runs through the hash for unused strings
* j_strcmp can check for == (if they are both from a pstrdup)
*
*
* let's see... this would change:
* pstrdup: do a hash lookup, success=return, fail=pmalloc & hash put
* pool_free:
*
* pool_free:
*
*/

/*! \file
Expand Down
16 changes: 8 additions & 8 deletions src/modules/xmpp/xsnprintf.c
@@ -1,12 +1,12 @@
/*
/*
* Copyright (c) 1995-1998 The Apache Group. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
Expand Down Expand Up @@ -366,7 +366,7 @@ static char *conv_10(register wide_int num, register bool_int is_unsigned,
*is_negative = (num < 0);

/*
* On a 2's complement machine, negating the most negative integer
* On a 2's complement machine, negating the most negative integer
* results in a number that cannot be represented as a signed integer.
* Here is what we do to obtain the number's magnitude:
* a. add 1 to the number
Expand All @@ -383,7 +383,7 @@ static char *conv_10(register wide_int num, register bool_int is_unsigned,
}

/*
* We use a do-while loop so that we write at least 1 digit
* We use a do-while loop so that we write at least 1 digit
*/
do {
register u_wide_int new_magnitude = magnitude / 10;
Expand Down Expand Up @@ -803,11 +803,11 @@ static int format_converter(register buffy *odp, const char *fmt, va_list ap)
break;

/*
* Always extract the argument as a "char *" pointer. We
* should be using "void *" but there are still machines
* Always extract the argument as a "char *" pointer. We
* should be using "void *" but there are still machines
* that don't understand it.
* If the pointer size is equal to the size of an unsigned
* integer we convert the pointer to a hex number, otherwise
* integer we convert the pointer to a hex number, otherwise
* we print "%p" to indicate that we don't handle "%p".
*/
case 'p':
Expand Down Expand Up @@ -865,7 +865,7 @@ static int format_converter(register buffy *odp, const char *fmt, va_list ap)
PAD(min_width, s_len, pad_char);
}
/*
* Print the string s.
* Print the string s.
*/
for(i = s_len; i != 0; i--) {
INS_CHAR(*s, sp, bep, cc);
Expand Down

0 comments on commit ae89b59

Please sign in to comment.