From 5ee6ac27d4fd4c9412183aa8cc1143f36ae04a8c Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Sun, 15 May 2011 23:00:11 +0100 Subject: 1712 remove uses of CPP assertions in conditionals Reviewed by: Andrew Stormont Reviewed by: Dan McDonald Reviewed by: Igor Kozhukhov Reviewed by: Garrett D'Amore Approved by: Gordon Ross --- usr/src/ucblib/libucb/port/gen/setbuffer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'usr/src/ucblib/libucb/port/gen/setbuffer.c') diff --git a/usr/src/ucblib/libucb/port/gen/setbuffer.c b/usr/src/ucblib/libucb/port/gen/setbuffer.c index 47aa76f88b..8eeea0179b 100644 --- a/usr/src/ucblib/libucb/port/gen/setbuffer.c +++ b/usr/src/ucblib/libucb/port/gen/setbuffer.c @@ -36,8 +36,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /*LINTLIBRARY*/ #include @@ -61,14 +59,11 @@ setbuffer(FILE *iop, char *abuf, int asize) iop->_flag &= ~(_IOMYBUF | _IONBF | _IOLBF); if (buf == 0) { iop->_flag |= _IONBF; -#ifndef _STDIO_ALLOCATE if (fno < 2) { /* use special buffer for std{in,out} */ buf = (fno == 0) ? _sibuf : _sobuf; size = BUFSIZ - _SMBFSZ; - } else /* needed for ifdef */ -#endif - if (fno < _NFILE) { + } else if (fno < _NFILE) { buf = _smbuf[fno]; size = _SMBFSZ - PUSHBACK; } else if ((buf = (Uchar *)malloc(_SMBFSZ * sizeof (Uchar))) != -- cgit v1.2.3