A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This ifdef is not necessary now.
[simgrid.git]
/
src
/
xbt
/
xbt_replay_trace_reader.c
diff --git
a/src/xbt/xbt_replay_trace_reader.c
b/src/xbt/xbt_replay_trace_reader.c
index
45b1a69
..
0c02352
100644
(file)
--- a/
src/xbt/xbt_replay_trace_reader.c
+++ b/
src/xbt/xbt_replay_trace_reader.c
@@
-3,6
+3,8
@@
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include "simgrid_config.h" //For getline, keep that include first
+
#include "gras_config.h"
#include <errno.h>
#include "xbt/sysdep.h"
#include "gras_config.h"
#include <errno.h>
#include "xbt/sysdep.h"
@@
-24,7
+26,7
@@
xbt_replay_trace_reader_t xbt_replay_trace_reader_new(const char *filename)
{
xbt_replay_trace_reader_t res = xbt_new0(s_xbt_replay_trace_reader_t,1);
res->fp = fopen(filename, "r");
{
xbt_replay_trace_reader_t res = xbt_new0(s_xbt_replay_trace_reader_t,1);
res->fp = fopen(filename, "r");
- xbt_assert
2
(res->fp != NULL, "Cannot open %s: %s", filename,
+ xbt_assert(res->fp != NULL, "Cannot open %s: %s", filename,
strerror(errno));
res->filename = xbt_strdup(filename);
return res;
strerror(errno));
res->filename = xbt_strdup(filename);
return res;