Date: Mon, 3 Dec 2012 10:44:15 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r308134 - in head/irc/irssistats: . files Message-ID: <201212031044.qB3AiF56006601@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr Date: Mon Dec 3 10:44:14 2012 New Revision: 308134 URL: http://svnweb.freebsd.org/changeset/ports/308134 Log: - Fix build with clang - Trim Makefile header Feature safe: yes Added: head/irc/irssistats/files/patch-irssistats.c (contents, props changed) Modified: head/irc/irssistats/Makefile (contents, props changed) Modified: head/irc/irssistats/Makefile ============================================================================== --- head/irc/irssistats/Makefile Mon Dec 3 10:38:33 2012 (r308133) +++ head/irc/irssistats/Makefile Mon Dec 3 10:44:14 2012 (r308134) @@ -1,9 +1,5 @@ -# New ports collection makefile for: irssistats -# Date created: 14 Feb 2004 -# Whom: Travis Poppe <tlp@liquidx.org> -# +# Created by: Travis Poppe <tlp@liquidx.org> # $FreeBSD$ -# PORTNAME= irssistats PORTVERSION= 0.75 Added: head/irc/irssistats/files/patch-irssistats.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/irc/irssistats/files/patch-irssistats.c Mon Dec 3 10:44:14 2012 (r308134) @@ -0,0 +1,32 @@ +--- irssistats.c.orig 2007-11-10 19:40:55.000000000 +0100 ++++ irssistats.c 2012-12-03 11:42:45.000000000 +0100 +@@ -1561,19 +1561,19 @@ + fclose(fic); + } + +-void parse_config(char *configfile) ++void expand(char *path) + { +- void expand(char *path) ++ char temp[MAXLINELENGTH]; ++ if (*path=='~') + { +- char temp[MAXLINELENGTH]; +- if (*path=='~') +- { +- snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1); +- temp[MAXLINELENGTH-1]='\0'; +- strcpy(path,temp); +- } ++ snprintf(temp,MAXLINELENGTH-1,"%s%s",getenv("HOME"),path+1); ++ temp[MAXLINELENGTH-1]='\0'; ++ strcpy(path,temp); + } +- ++} ++ ++void parse_config(char *configfile) ++{ + FILE *fic; + char line[MAXLINELENGTH]; + char keyword[MAXLINELENGTH];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212031044.qB3AiF56006601>