o Update MASTERE_SITES.

o Some fix (NULL != NUL, void main -> int main).
o Update archive md5.
  some bug fix in new archive(this was released after 19 hours than old one).

Submitted by:	Yoshihiko - he is in seat next mine in jammed
		            Chuou Highway - Sarumaru <mistral@imasy.or.jp> (maintainer)
Committed at:	jammed Chuou Highway in Japan
This commit is contained in:
Norikatsu Shigemura 2004-03-21 08:59:21 +00:00
parent b874d8a8f2
commit 6dfe7ff622
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=104819
4 changed files with 48 additions and 5 deletions

View file

@ -7,8 +7,9 @@
PORTNAME= du2ps
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.shobi-u.ac.jp/~tnagae/src/ps-c/du2ps/du2ps-2.1/
MASTER_SITES= http://www.research.co.jp/software/du2ps/
EXTRACT_SUFX= .tgz
MAINTAINER= mistral@imasy.or.jp

View file

@ -1 +1,2 @@
MD5 (du2ps-2.1.tgz) = f39e4724cb1a8831f0355fbeb8d819a6
MD5 (du2ps-2.1.tgz) = e0f1366513b1a257cfdb4676bb8c4f9c
SIZE (du2ps-2.1.tgz) = 9152

View file

@ -1,6 +1,6 @@
--- nodeop.c.orig Tue Mar 15 18:15:58 1994
+++ nodeop.c Wed Jun 6 15:03:28 2001
@@ -142,7 +142,8 @@
--- nodeop.c.orig Wed Mar 16 13:10:45 1994
+++ nodeop.c Sun Mar 21 17:44:55 2004
@@ -142,7 +142,8 @@ int depth;
/* for each child */
for(np = nodep->child; NODE_NULL != np; np = np->peer){
@ -10,3 +10,33 @@
drawrect(np, y, height, depth);
@@ -172,9 +173,9 @@ parse()
if('/' == *n) n++; /* skip leading / */
path[depth = 0] = n;
- for(; NULL != *n; n++){
+ for(; '\0' != *n; n++){
if('/' == *n){
- *n = NULL;
+ *n = '\0';
path[++depth] = n + 1;
if(depth > MAXDEPTH) break;
}
@@ -193,7 +194,7 @@ parse()
if (1 == top->nchild) {
top = top->child;
- while (NULL != *n) n++;
+ while ('\0' != *n) n++;
*n = '/';
}
else if(1 < top->nchild){
@@ -204,7 +205,7 @@ parse()
}
else break;
}
- *n = NULL;
+ *n = '\0';
return strdup(name);
}

View file

@ -0,0 +1,11 @@
--- du2ps.c.orig Wed Mar 16 11:41:16 1994
+++ du2ps.c Sun Mar 21 17:36:26 2004
@@ -57,7 +57,7 @@
for(; NULL != *mes; mes++) puts(*mes);
}
-void
+int
main(argc,argv)
int argc;
char **argv;