From: Dwight Perry Date: Mon, 27 Feb 2012 18:49:04 +0000 (-0500) Subject: bzero replaced with memset X-Git-Tag: LAST_LIBGRAPH~32^2~474 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31c0f18805cc56f67baec9c267a529af4a211d50;p=graphviz bzero replaced with memset --- diff --git a/cmd/tools/gv2gml.c b/cmd/tools/gv2gml.c index 4b29cd71b..feb75c06f 100644 --- a/cmd/tools/gv2gml.c +++ b/cmd/tools/gv2gml.c @@ -14,6 +14,14 @@ * AT&T Research, Florham Park NJ * **********************************************************/ +#ifdef WIN32 /*dependencies*/ + #pragma comment( lib, "cgraph.lib" ) + #pragma comment( lib, "ingraphs.lib" ) + #pragma comment( lib, "cdt.lib" ) + +#endif + + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -251,7 +259,7 @@ emitNodeAttrs (Agraph_t* G, Agnode_t* np, FILE* outFile, int ix) double x, y; /* First, process the attributes, saving the graphics attributes */ - bzero(&attrs, sizeof(attrs)); + memset(&attrs,0, sizeof(attrs)); for (s = agnxtattr (G, AGNODE, NULL); s; s = agnxtattr (G, AGNODE, s)) { if (streq(s->name, "style")) { /* hasFill outlineStyle invis */ if (*(v = agxget (np, s))) { @@ -450,7 +458,7 @@ emitEdgeAttrs (Agraph_t* G, Agedge_t* ep, FILE* outFile, int ix) int style; /* First, process the attributes, saving the graphics attributes */ - bzero(&attrs, sizeof(attrs)); + memset(&attrs,0, sizeof(attrs)); for (s = agnxtattr (G, AGEDGE, NULL); s; s = agnxtattr (G, AGEDGE, s)) { if (streq(s->name, "style")) { /* hasFill outlineStyle invis */ if (*(v = agxget (ep, s))) {