From c27294e084e10063e280e0772ade94eb0e0fcc95 Mon Sep 17 00:00:00 2001 From: nohar Date: Sun, 9 Oct 2005 12:40:38 +0000 Subject: [PATCH] tiny fixes, debian/ mostly --- debian/changelog | 6 ++++-- debian/copyright | 26 ++++++++++++++++++++++++++ src/bip.c | 6 +++--- src/lex.l | 2 +- 4 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 debian/copyright diff --git a/debian/changelog b/debian/changelog index 8d4dfd2..1efafc3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,7 @@ -bip (0.0-1) unstable; urgency=low +bip (0.5.0-1) unstable; urgency=low + * Initial release. * debian/rules: Initial package - -- Arnaud Cornet Thu, 20 Apr 2005 22:00:45 -0200 + -- Arnaud Cornet Sun, 09 Oct 2005 14:16:42 +0200 + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4c61fb3 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,26 @@ +This package was debianized by Arnaud Cornet on +Sun, 09 Oct 2005 14:18:48 +0200 + +It was downloaded from http://bip.berlios.de + +Upstream Author: Arnaud Cornet and loïc Gomez + +Copyright: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 2 dated June, 1991. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + 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 package; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA + 02110-1301, USA. + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + diff --git a/src/bip.c b/src/bip.c index 28bbd68..0cb30f6 100644 --- a/src/bip.c +++ b/src/bip.c @@ -70,7 +70,7 @@ static void hash_binary(char *hex, unsigned char **password, unsigned int *seed) if (strlen(hex) != 40) fatal("Incorrect password format %s\n", hex); - + md5 = malloc(20); for (i = 0; i < 20; i++) { sscanf(hex + 2 * i, "%02x", &buf); @@ -1160,7 +1160,7 @@ int adm_bip(struct link_client *ic, struct line *line) nick = LINK(ic)->prev_nick; if (line->elemc < 2) return OK_FORGET; - + if (strcasecmp(line->elemv[1], "RELOAD") == 0) { reloading_client = ic; sighup = 1; @@ -1193,7 +1193,7 @@ void free_conf(list_t *l) switch (t->tuple_type) { case TUPLE_STR: free(t->pdata); /* no break, for the style */ - case TUPLE_INT: + case TUPLE_INT: free(t); break; case TUPLE_LIST: diff --git a/src/lex.l b/src/lex.l index f7cd675..0c78b64 100644 --- a/src/lex.l +++ b/src/lex.l @@ -40,7 +40,7 @@ list_t *parse_conf(FILE *file) return NULL; } return root_list; -} +} %} %% (" "|\t)+