diff options
author | gahr <gahr@FreeBSD.org> | 2012-12-03 18:44:14 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2012-12-03 18:44:14 +0800 |
commit | 016fe2d65fde96be3735fe29a86ee303a9b71d35 (patch) | |
tree | b97a269eb260e682a6b1faaf60f9bf1c6e4f1d32 | |
parent | 389d9f15c4459f26c0ca14bf4db4620fd031da52 (diff) | |
download | freebsd-ports-gnome-016fe2d65fde96be3735fe29a86ee303a9b71d35.tar.gz freebsd-ports-gnome-016fe2d65fde96be3735fe29a86ee303a9b71d35.tar.zst freebsd-ports-gnome-016fe2d65fde96be3735fe29a86ee303a9b71d35.zip |
- Fix build with clang
- Trim Makefile header
Feature safe: yes
-rw-r--r-- | irc/irssistats/Makefile | 6 | ||||
-rw-r--r-- | irc/irssistats/files/patch-irssistats.c | 32 |
2 files changed, 33 insertions, 5 deletions
diff --git a/irc/irssistats/Makefile b/irc/irssistats/Makefile index 5eb384f3ab6d..2a79f393dfb2 100644 --- a/irc/irssistats/Makefile +++ b/irc/irssistats/Makefile @@ -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 diff --git a/irc/irssistats/files/patch-irssistats.c b/irc/irssistats/files/patch-irssistats.c new file mode 100644 index 000000000000..70fe2f998d65 --- /dev/null +++ b/irc/irssistats/files/patch-irssistats.c @@ -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]; |