[61671] trunk/base/src/pextlib1.0
toby at macports.org
toby at macports.org
Fri Dec 18 00:04:28 PST 2009
Revision: 61671
http://trac.macports.org/changeset/61671
Author: toby at macports.org
Date: 2009-12-18 00:04:25 -0800 (Fri, 18 Dec 2009)
Log Message:
-----------
remove useless macro, replace bzero with memset
Modified Paths:
--------------
trunk/base/src/pextlib1.0/Pextlib.c
trunk/base/src/pextlib1.0/system.c
Modified: trunk/base/src/pextlib1.0/Pextlib.c
===================================================================
--- trunk/base/src/pextlib1.0/Pextlib.c 2009-12-18 07:59:57 UTC (rev 61670)
+++ trunk/base/src/pextlib1.0/Pextlib.c 2009-12-18 08:04:25 UTC (rev 61671)
@@ -84,12 +84,6 @@
extern char **environ;
#endif
-#if !HAVE_BZERO
-#if HAVE_MEMSET
-#define bzero(b, len) (void)memset(b, 0x00, len)
-#endif
-#endif
-
#if !HAVE_FGETLN
char *fgetln(FILE *stream, size_t *len);
#endif
Modified: trunk/base/src/pextlib1.0/system.c
===================================================================
--- trunk/base/src/pextlib1.0/system.c 2009-12-18 07:59:57 UTC (rev 61670)
+++ trunk/base/src/pextlib1.0/system.c 2009-12-18 08:04:25 UTC (rev 61671)
@@ -153,7 +153,7 @@
/* read from simulated popen() pipe */
read_failed = 0;
pos = 0;
- bzero(circbuf, sizeof(circbuf));
+ memset(circbuf, 0, sizeof(circbuf));
pdes = fdopen(fdset[0], "r");
while ((buf = fgetln(pdes, &linelen)) != NULL) {
char *sbuf;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091218/f76f9493/attachment.html>
More information about the macports-changes
mailing list