# HG changeset patch # User mmj # Date 1082638827 -36000 # Node ID b045203f558b40d001aeff114a4803ceb46cc0c2 # Parent 0ff3818c8132da3fe30e296be2291415b22af0d8 Add GPL info in top of files where it was missing, and remove a file that was committed by mistake diff -r 0ff3818c8132 -r b045203f558b src/do_all_the_voodo_here.c --- a/src/do_all_the_voodo_here.c Thu Apr 22 22:41:02 2004 +1000 +++ b/src/do_all_the_voodo_here.c Thu Apr 22 23:00:27 2004 +1000 @@ -1,3 +1,11 @@ +/* Copyright (C) 2004 Mads Martin Joergensen + * + * $Id$ + * + * This file is redistributable under version 2 of the GNU General + * Public License as described at http://www.gnu.org/licenses/gpl.txt + */ + #include #include #include diff -r 0ff3818c8132 -r b045203f558b src/gethdrline.c --- a/src/gethdrline.c Thu Apr 22 22:41:02 2004 +1000 +++ b/src/gethdrline.c Thu Apr 22 23:00:27 2004 +1000 @@ -1,3 +1,11 @@ +/* Copyright (C) 2004 Mads Martin Joergensen + * + * $Id$ + * + * This file is redistributable under version 2 of the GNU General + * Public License as described at http://www.gnu.org/licenses/gpl.txt + */ + #include #include diff -r 0ff3818c8132 -r b045203f558b src/mlmmj-process.c --- a/src/mlmmj-process.c Thu Apr 22 22:41:02 2004 +1000 +++ b/src/mlmmj-process.c Thu Apr 22 23:00:27 2004 +1000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Mads Martin Joergensen +/* Copyright (C) 2002, 2003, 2004 Mads Martin Joergensen * * $Id$ * diff -r 0ff3818c8132 -r b045203f558b src/mlmmj-send.c --- a/src/mlmmj-send.c Thu Apr 22 22:41:02 2004 +1000 +++ b/src/mlmmj-send.c Thu Apr 22 23:00:27 2004 +1000 @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003 Mads Martin Joergensen +/* Copyright (C) 2002, 2003, 2004 Mads Martin Joergensen * * $Id$ * diff -r 0ff3818c8132 -r b045203f558b src/mygetline.c --- a/src/mygetline.c Thu Apr 22 22:41:02 2004 +1000 +++ b/src/mygetline.c Thu Apr 22 23:00:27 2004 +1000 @@ -1,3 +1,11 @@ +/* Copyright (C) 2004 Morten K. Poulsen + * + * $Id$ + * + * This file is redistributable under version 2 of the GNU General + * Public License as described at http://www.gnu.org/licenses/gpl.txt + */ + #include #include #include diff -r 0ff3818c8132 -r b045203f558b src/print-version.c --- a/src/print-version.c Thu Apr 22 22:41:02 2004 +1000 +++ b/src/print-version.c Thu Apr 22 23:00:27 2004 +1000 @@ -1,3 +1,11 @@ +/* Copyright (C) 2003, 2004 Mads Martin Joergensen + * + * $Id$ + * + * This file is redistributable under version 2 of the GNU General + * Public License as described at http://www.gnu.org/licenses/gpl.txt + */ + #include #include #include @@ -6,7 +14,7 @@ void print_version(const char *prg) { - char *lastslashindex = rindex(prg, '/'); + char *lastslashindex = strrchr(prg, '/'); if(!lastslashindex) lastslashindex = (char *)prg; diff -r 0ff3818c8132 -r b045203f558b src/strt.c --- a/src/strt.c Thu Apr 22 22:41:02 2004 +1000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ -#include "../include/strgen.h" - -int main() -{ - char *str = strgen(3, "fick ", "dich!", "\n"); - printf("[%s]", str); - free(str); - - return 0; -}