Skip to content

Commit

Permalink
db_berkeley: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent 6ab8de8 commit f9c78be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions utils/db_berkeley/kambdb_recover.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* 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
*
*
* History:
* --------
* 2007-09-19 genesis (wiquan)
Expand All @@ -34,7 +34,7 @@ char *db_home = NULL;
const char *progname;

/**
* main --
* main --
*/
int main(int argc, char *argv[])
{
Expand Down Expand Up @@ -89,8 +89,8 @@ int main(int argc, char *argv[])


/**
* usage --
*
* usage --
*
*/
int usage(void)
{
Expand Down Expand Up @@ -183,7 +183,7 @@ int create_all(void)
* parameter tn is optional,
* if tablename (tn) is specified returns only jnl files for tablename (tn)
* else returns a sorted linkedlist of all files in d
* returns lnode_p
* returns lnode_p
* the head linknode points to the latests file.
*/
lnode_p file_list(char *d, char *tn)
Expand Down Expand Up @@ -265,11 +265,11 @@ int compare(const void *a, const void *b)

/**
* recover -- given a journal filename, creates a new db w. metadata, and replays
* the events in journalized order.
* the events in journalized order.
* Results in a new db containing the journaled data.
*
* fn (filename) must be in the form:
* location-20070803175446.jnl
* location-20070803175446.jnl
*/
int recover(char *jfn)
{
Expand Down Expand Up @@ -401,7 +401,7 @@ int recover(char *jfn)
}

/**
* recover_all -- Iterates over all core tables in enumerated order for recovery from
* recover_all -- Iterates over all core tables in enumerated order for recovery from
* journal files (.jnl).
* The parm 'lastn' is the number of journal files needed to be recovered.
* Hardcoded to only find MAXFILES.
Expand Down Expand Up @@ -468,7 +468,7 @@ int recover_all(int lastn)
* extract_key -- uses the internal schema to extract the key from the data
* row that was found in the journal.
* caller provides inititialize memory for destination key (k).
* data is provided ; key is filled in
* data is provided ; key is filled in
*/
int extract_key(table_p tp, char *k, char *d)
{
Expand Down Expand Up @@ -508,7 +508,7 @@ int extract_key(table_p tp, char *k, char *d)
}

/**
* delete -- deletes a row from the db we are trying to rebuild
* delete -- deletes a row from the db we are trying to rebuild
*/
int delete(table_p tp, char *k, int len)
{
Expand Down
8 changes: 4 additions & 4 deletions utils/db_berkeley/kambdb_recover.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* $Id$
*
* recovery for berkeley_db module
*
*
* Copyright (C) 2007 Cisco Systems
*
* This file is part of Kamailio, a free SIP server.
Expand All @@ -17,10 +17,10 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* 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
*
*
* History:
* --------
* 2007-09-19 genesis (wiquan)
Expand Down

0 comments on commit f9c78be

Please sign in to comment.