(putf): %t: the regular and streamspty case are functionally
equivalent, so merge them, this also makes it work better on machines that puts their devices in a subdirectory to /dev git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15003 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -431,11 +431,7 @@ putchr(int cc)
|
|||||||
*putlocation++ = cc;
|
*putlocation++ = cc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
static char fmtstr[] = { "%l:%M%P on %A, %d %B %Y" };
|
||||||
* This is split on two lines so that SCCS will not see the M
|
|
||||||
* between two % signs and expand it...
|
|
||||||
*/
|
|
||||||
static char fmtstr[] = { "%l:%M" "%P on %A, %d %B %Y" };
|
|
||||||
|
|
||||||
void putf(char *cp, char *where)
|
void putf(char *cp, char *where)
|
||||||
{
|
{
|
||||||
@@ -470,12 +466,7 @@ void putf(char *cp, char *where)
|
|||||||
switch (*++cp) {
|
switch (*++cp) {
|
||||||
|
|
||||||
case 't':
|
case 't':
|
||||||
#ifdef STREAMSPTY
|
|
||||||
/* names are like /dev/pts/2 -- we want pts/2 */
|
|
||||||
slash = strchr(line+1, '/');
|
slash = strchr(line+1, '/');
|
||||||
#else
|
|
||||||
slash = strrchr(line, '/');
|
|
||||||
#endif
|
|
||||||
if (slash == (char *) 0)
|
if (slash == (char *) 0)
|
||||||
putstr(line);
|
putstr(line);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user