git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 1.10.10.
[libguestfs.git]
/
capitests
/
test-command.c
diff --git
a/capitests/test-command.c
b/capitests/test-command.c
index
c43353d
..
c23b7d1
100644
(file)
--- a/
capitests/test-command.c
+++ b/
capitests/test-command.c
@@
-26,6
+26,8
@@
#include <string.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
+#define STREQ(a,b) (strcmp((a),(b)) == 0)
+
int
main (int argc, char *argv[])
{
int
main (int argc, char *argv[])
{
@@
-54,12
+56,12
@@
main (int argc, char *argv[])
printf ("Result11-1\nResult11-2");
} else {
fprintf (stderr, "unknown parameter: %s\n", argv[1]);
printf ("Result11-1\nResult11-2");
} else {
fprintf (stderr, "unknown parameter: %s\n", argv[1]);
- exit (
1
);
+ exit (
EXIT_FAILURE
);
}
} else {
fprintf (stderr, "missing parameter\n");
}
} else {
fprintf (stderr, "missing parameter\n");
- exit (
1
);
+ exit (
EXIT_FAILURE
);
}
}
- exit (
0
);
+ exit (
EXIT_SUCCESS
);
}
}