Skip to content

Commit

Permalink
update copyrights and fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pjstevns committed Jan 24, 2011
1 parent 3b5c24f commit c72a140
Show file tree
Hide file tree
Showing 86 changed files with 92 additions and 93 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
(c) 2000-2005 IC&S, The Netherlands
(c) 2004-2010 NFG Net Facilities Group BV, The Netherlands, support@nfg.nl
(c) 2004-2011 NFG Net Facilities Group BV, The Netherlands, support@nfg.nl
*/

What is it?
Expand Down
3 changes: 2 additions & 1 deletion THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ and Ilja Booij. Development since 2.0 is led by Paul J Stevens and
Aaron Stone.

Special thanks to Metaways.net for providing resources so dbmail runs
on Solaris, and to InternetConnection.net for providing the sqlite driver.
on Solaris, and to InternetConnection.net for providing the original
sqlite driver.

Many people further contributed to DBMail by reporting problems,
suggesting various improvements and submitting code patches.
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
# Copyright (c) 2004-2006 NFG Net Facilities Group BV support@nfg.nl
# Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/clientbase.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/clientbase.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/clientsession.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/clientsession.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-imapsession.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-imapsession.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
*
*/

Expand Down
5 changes: 2 additions & 3 deletions src/dbmail-mailbox.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down Expand Up @@ -1356,8 +1356,7 @@ GTree * dbmail_mailbox_get_set(DbmailMailbox *self, const char *set, gboolean ui
GString *t;
GTree *uids;
char *rest;
u64_t i, l, r, lo = 0, hi = 0, maxmsn = 0;
u64_t *k, *v, *w = NULL;
u64_t l, r, lo = 0, hi = 0, maxmsn = 0;
GTree *a, *b, *c;
gboolean error = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-mailbox.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-message.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-message.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-user.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dbmail-user.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
4 changes: 2 additions & 2 deletions src/dbmail.h.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright (C) 1999-2004 IC & S, dbmail@ic-s.nl
Copyright (C) 2001-2007 Aaron Stone, aaron@serendipity.cx
Copyright (C) 2004-2007 NFG Net Facilities Group BV, support@nfg.nl
Copyright (C) 2004-2011 NFG Net Facilities Group BV, support@nfg.nl

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
Expand Down Expand Up @@ -163,7 +163,7 @@
#define COPYRIGHT \
"Copyright (C) 1999-2004 IC & S, dbmail@ic-s.nl\n" \
"Copyright (C) 2001-2007 Aaron Stone, aaron@serendipity.cx\n" \
"Copyright (C) 2004-2008 NFG Net Facilities Group BV, support@nfg.nl\n" \
"Copyright (C) 2004-2011 NFG Net Facilities Group BV, support@nfg.nl\n" \
"\n" \
"Please see the AUTHORS and THANKS files for additional contributors.\n" \
"\n" \
Expand Down
2 changes: 1 addition & 1 deletion src/dbmailtypes.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_acl.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_cache.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_cache.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_capa.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2008 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2009-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_capa.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2009-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_cidr.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_cidr.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_config.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_cram.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2008 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2008-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_cram.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2008 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2008-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_db.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* */
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_db.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_debug.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_debug.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_digest.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_http.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (C) 2008 NFG Net Facilities Group BV, support@nfg.nl
Copyright (C) 2008-2011 NFG Net Facilities Group BV, support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_http.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

/*
Copyright (C) 2008 NFG Net Facilities Group BV, support@nfg.nl
Copyright (C) 2008-2011 NFG Net Facilities Group BV, support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_iconv.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_iconv.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_list.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_list.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_mailboxstate.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_mailboxstate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
8 changes: 4 additions & 4 deletions src/dm_match.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ char *match_glob(char *pattern, char *candidate)
int j;

for (j = 0; j < len; j++) {
if (strncmp(parts[i], can + j, CLAMP(plen, plen, len - j)) == 0) {
if (strncmp(parts[i], can + j, MIN(plen, len - j)) == 0) {
can += CLAMP(plen + j, plen, len);
has_star = 0;
break;
Expand All @@ -138,7 +138,7 @@ char *match_glob(char *pattern, char *candidate)
int j;

for (j = 0; j <= has_question; j++) {
if (strncmp(parts[i], can + j, CLAMP(plen, plen, len - j)) == 0) {
if (strncmp(parts[i], can + j, MIN(plen, len-j)) == 0) {
can += CLAMP(plen + j, plen, len);
has_question = 0;
break;
Expand All @@ -153,8 +153,8 @@ char *match_glob(char *pattern, char *candidate)
}

// This is for normal matching.
if (strncmp(parts[i], can, CLAMP(plen, plen, len)) == 0) {
can += CLAMP(plen, plen, len);
if (strncmp(parts[i], can, MIN(plen, len)) == 0) {
can += MIN(plen, len);
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion src/dm_memblock.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
2 changes: 1 addition & 1 deletion src/dm_memblock.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Copyright (C) 1999-2004 IC & S dbmail@ic-s.nl
Copyright (c) 2004-2010 NFG Net Facilities Group BV support@nfg.nl
Copyright (c) 2004-2011 NFG Net Facilities Group BV support@nfg.nl
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
Expand Down
Loading

0 comments on commit c72a140

Please sign in to comment.