Changeset 298fecb42207…
Parent 3425c24b4fa2…
by
Changes to one file · Browse files at 298fecb42207 Showing diff from parent 3425c24b4fa2 Diff from another changeset...
@@ -116,10 +116,10 @@ std::auto_ptr<dirstate> dirstate::read(const char *path)
{
direntry e;
- FILE *f = NULL;
+ FILE *f = 0;
f = fopen(path, "rb");
- if (f == NULL)
+ if (!f)
return std::auto_ptr<dirstate>(0);
std::auto_ptr<dirstate> pd(new dirstate());
@@ -154,7 +154,7 @@}
-dirstatecache* _cache = NULL;
+dirstatecache* _cache = 0;
const dirstate* dirstate_get(const char* hgroot)
{
std::string path = hgroot;
@@ -163,7 +163,7 @@ struct _stat stat;
if (0 != lstat(path.c_str(), &stat))
- return NULL;
+ return 0;
dirstatecache* head = _cache;
while (head)
|
Loading...