mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
- Fix build with clang
- Trim Makefile header Feature safe: yes
This commit is contained in:
parent
9c38493c43
commit
756156fec8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308134
@ -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
|
||||
|
32
irc/irssistats/files/patch-irssistats.c
Normal file
32
irc/irssistats/files/patch-irssistats.c
Normal file
@ -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];
|
Loading…
Reference in New Issue
Block a user