X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=hivex%2Fhivexget.c;h=3e89d632a81243893e182bf44de6832098ce1112;hb=0221c671e4ce572c602f8576e82f89b4c02c6232;hp=8cc395a1fca11c7725a884741459fd332df692e1;hpb=c372c7c23a298a940b8a0868396ef2ae0d824e4d;p=libguestfs.git diff --git a/hivex/hivexget.c b/hivex/hivexget.c index 8cc395a..3e89d63 100644 --- a/hivex/hivexget.c +++ b/hivex/hivexget.c @@ -27,6 +27,8 @@ #include "hivex.h" +enum { EXIT_NOT_FOUND = 2 }; + 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); - exit (2); + exit (EXIT_NOT_FOUND); } 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); - exit (2); + exit (EXIT_NOT_FOUND); } /* Print the value. */