check return value of rump_init()
This commit is contained in:
parent
8572b64ab0
commit
ea7f1c6709
@ -2,9 +2,15 @@
|
||||
|
||||
#include <rump/rump.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
int rv;
|
||||
|
||||
rump_init();
|
||||
rv = rump_init();
|
||||
printf("rump init returned: %d (%s)\n", rv,
|
||||
rv == 0 ? "success" : strerror(rv));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user