head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.4 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.2 pkgsrc-2012Q4-base:1.4 pkgsrc-2012Q1:1.2.0.16 pkgsrc-2012Q1-base:1.2 pkgsrc-2011Q4:1.2.0.14 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.2.0.12 pkgsrc-2011Q3-base:1.2 pkgsrc-2011Q2:1.2.0.10 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.2.0.8 pkgsrc-2011Q1-base:1.2 pkgsrc-2010Q4:1.2.0.6 pkgsrc-2010Q4-base:1.2 pkgsrc-2010Q3:1.2.0.4 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.2.0.2 pkgsrc-2010Q2-base:1.2 pkgsrc-2010Q1:1.1.0.38 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.36 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.34 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.32 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.30 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.28 pkgsrc-2008Q4-base:1.1 pkgsrc-2008Q3:1.1.0.26 pkgsrc-2008Q3-base:1.1 cube-native-xorg:1.1.0.24 cube-native-xorg-base:1.1 pkgsrc-2008Q2:1.1.0.22 pkgsrc-2008Q2-base:1.1 cwrapper:1.1.0.20 pkgsrc-2008Q1:1.1.0.18 pkgsrc-2008Q1-base:1.1 pkgsrc-2007Q4:1.1.0.16 pkgsrc-2007Q4-base:1.1 pkgsrc-2007Q3:1.1.0.14 pkgsrc-2007Q3-base:1.1 pkgsrc-2007Q2:1.1.0.12 pkgsrc-2007Q2-base:1.1 pkgsrc-2007Q1:1.1.0.10 pkgsrc-2007Q1-base:1.1 pkgsrc-2006Q4:1.1.0.8 pkgsrc-2006Q4-base:1.1 pkgsrc-2006Q3:1.1.0.6 pkgsrc-2006Q3-base:1.1 pkgsrc-2006Q2:1.1.0.4 pkgsrc-2006Q2-base:1.1 pkgsrc-2006Q1:1.1.0.2 pkgsrc-2006Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2012.05.31.23.42.01; author dholland; state dead; branches; next 1.3; 1.3 date 2012.05.31.23.37.57; author dholland; state Exp; branches; next 1.2; 1.2 date 2010.04.29.00.22.02; author dholland; state Exp; branches; next 1.1; 1.1 date 2006.01.09.22.14.32; author joerg; state Exp; branches; next ; desc @@ 1.4 log @Rename patch files to new standard for tidiness. No functional change. @ text @$NetBSD: patch-ab,v 1.3 2012/05/31 23:37:57 dholland Exp $ - use ctype.h functions correctly - avoid symbol name conflict with getline() - the name in struct dirent is null-terminated, don't try to bound it --- focal2.c.orig 1995-04-17 13:03:46.000000000 +0000 +++ focal2.c @@@@ -49,7 +49,7 @@@@ void library() c = getnb(); if (c!='c' && c!='s' && c!='l' && c!='d') diag("Bad library command"); - while (isalpha(*ctp)) + while (isalpha((unsigned char)*ctp)) ++ctp; while ((d = *ctp)==' ' || d=='\t') ++ctp; @@@@ -71,7 +71,7 @@@@ void library() } line = NULL; sctp = ctp; - while (getline(abuf, fp) != 0) { + while (get_line(abuf, fp) != 0) { ctp = abuf; if ((c=getnb()) != 0) { if (isdigit(c) == 0) @@@@ -138,7 +138,7 @@@@ void library() || strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0) continue; - printf("%.*s\n", de->d_reclen, de->d_name); + printf("%s\n", de->d_name); } closedir(dp); #else @ 1.3 log @Pass -Wall; fix Solaris and Linux build by not trying to use ->d_namlen in struct dirent. There's no need to. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2010/04/29 00:22:02 dholland Exp $ @ 1.2 log @patch getline() -> get_line() for -current (thank you PSOIX) @ text @d1 5 a5 1 $NetBSD: patch-ab,v 1.1 2006/01/09 22:14:32 joerg Exp $ d9 9 d32 1 a32 1 + printf("%.*s\n", de->d_namlen, de->d_name); @ 1.1 log @Use d_namlen as boundary for d_name, the printf still doesn't make much sense, but who cares? @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- focal2.c.orig 2006-01-09 22:06:20.000000000 +0000 d5 9 @