git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon/Win32: provide htonl, htons, ntohl, ntohs functions.
[libguestfs.git]
/
hivex
/
hivexget.c
diff --git
a/hivex/hivexget.c
b/hivex/hivexget.c
index
8cc395a
..
3e89d63
100644
(file)
--- a/
hivex/hivexget.c
+++ b/
hivex/hivexget.c
@@
-27,6
+27,8
@@
#include "hivex.h"
#include "hivex.h"
+enum { EXIT_NOT_FOUND = 2 };
+
int
main (int argc, char *argv[])
{
int
main (int argc, char *argv[])
{
@@
-82,7
+84,7
@@
main (int argc, char *argv[])
/* else node not found */
fprintf (stderr, "hivexget: %s: %s: path element not found\n",
path, p);
/* else node not found */
fprintf (stderr, "hivexget: %s: %s: path element not found\n",
path, p);
- exit (
2
);
+ exit (
EXIT_NOT_FOUND
);
}
p = pnext;
}
p = pnext;
@@
-103,7
+105,7
@@
main (int argc, char *argv[])
goto error;
/* else key not found */
fprintf (stderr, "hivexget: %s: key not found\n", key);
goto error;
/* else key not found */
fprintf (stderr, "hivexget: %s: key not found\n", key);
- exit (
2
);
+ exit (
EXIT_NOT_FOUND
);
}
/* Print the value. */
}
/* Print the value. */