arena: Connecting importers with sources
[akaros.git] / tests / serialize_test.c
index 128c618..09f4cfe 100644 (file)
@@ -8,14 +8,13 @@
 
 int main(int argc, char **argv, char **envp)
 {
-       struct serialized_data *sd =
-               serialize_argv_envp((const char * const *) argv,
-                                                       (const char * const *) envp);
+       struct serialized_data *sd = serialize_argv_envp(argv, envp);
        size_t *kargc = (size_t*)sd->buf;
        size_t *kenvc = (size_t*)(sd->buf + sizeof(size_t));
        char **kargv = (char**)(sd->buf + 2*sizeof(size_t));
        char **kenvp = (char**)(kargv + *kargc);
        uintptr_t bufbase = (uintptr_t)(kenvp + *kenvc);
+
        printf("argc: %lu\n", *kargc);
        printf("envc: %lu\n", *kenvc);
        for (int i = 0; i < *kargc; i++)