diff options
author | rodri <rgl@antares-labs.eu> | 2023-11-11 09:16:04 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-11-11 09:16:04 +0000 |
commit | b86030fbaa1c1522f1d4f996ad763e2c3880bac9 (patch) | |
tree | a3bc47d02672fe15aabfb7ed34599def13463e8a /test/main.c | |
parent | 8954159bc44bcc91f25fb4395c86461d4d32f8ae (diff) | |
download | libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.tar.gz libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.tar.bz2 libobj-b86030fbaa1c1522f1d4f996ad763e2c3880bac9.zip |
fix paths in the test program.
Diffstat (limited to 'test/main.c')
-rw-r--r-- | test/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/main.c b/test/main.c index 1a60b42..48610da 100644 --- a/test/main.c +++ b/test/main.c @@ -1,6 +1,6 @@ #include <u.h> #include <libc.h> -#include "../../obj.h" +#include "../obj.h" static char fd0[] = "/fd/0"; @@ -26,10 +26,12 @@ main(int argc, char *argv[]) usage(); if(argc == 1) f = argv[0]; + obj = objparse(f); if(obj == nil) sysfatal("objparse: %r"); + print("%O\n", obj); objfree(obj); - exits(0); + exits(nil); } |