diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-04-13 17:33:57 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-04-13 17:33:57 -0500 |
commit | d6af46915ccb15e5b9c0b951a101e03140ce0b9a (patch) | |
tree | 7ab5254818ae429b4b35c9712f39f360c54c1aac /src/sim/process.hh | |
parent | b26fef8466ce0ddf4bd0695e09538117e16cf7d8 (diff) | |
download | gem5-d6af46915ccb15e5b9c0b951a101e03140ce0b9a.tar.xz |
sim: Use NULL instead of None for testing filenames.
The filenames are initialized with NULL. So the test should be
checking for them to be == NULL instead == None.
Diffstat (limited to 'src/sim/process.hh')
-rw-r--r-- | src/sim/process.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/process.hh b/src/sim/process.hh index 85ac8a1d5..04ce00f67 100644 --- a/src/sim/process.hh +++ b/src/sim/process.hh @@ -189,7 +189,7 @@ class Process : public SimObject void dup_fd(int sim_fd, int tgt_fd); // generate new target fd for sim_fd - int alloc_fd(int sim_fd, std::string filename, int flags, int mode, + int alloc_fd(int sim_fd, const std::string& filename, int flags, int mode, bool pipe); // free target fd (e.g., after close) |