/*
 * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
 * See COPYING in top-level directory.
 */

#include <private/config.h>

#ifdef HAVE_XML

#include <hwloc.h>

#include "lstopo.h"

void output_xml(hwloc_topology_t topology, const char *filename, int verbose_mode)
{
  if (!strcasecmp(filename, "-.xml"))
    filename = "-";

  hwloc_topology_export_xml(topology, filename);
}

#endif /* HAVE_XML */

/*
 * Copyright © 2009 CNRS, INRIA, Université Bordeaux 1
 * See COPYING in top-level directory.
 */

#include <private/config.h>

#ifdef HAVE_XML

#include <hwloc.h>
#include <string.h>

#include "lstopo.h"

void output_xml(hwloc_topology_t topology, const char *filename, int verbose_mode)
{
  if (!strcasecmp(filename, "-.xml"))
    filename = "-";

  hwloc_topology_export_xml(topology, filename);
}

#endif /* HAVE_XML */

Fix compiler warning complaining about un-proto...
Fix compiler warning complaining about un-proto...

Fix compiler warning complaining about un-prototyped strcasecmp().

This commit was SVN r1191.
