Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- include/jit/exception.h | 2 +- include/vm/object.h | 2 +- jit/exception.c | 2 +- test/vm/object-stub.c | 2 +- vm/object.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/jit/exception.h b/include/jit/exception.h index 39482ee..8771f2f 100644 --- a/include/jit/exception.h +++ b/include/jit/exception.h @@ -55,7 +55,7 @@ void throw_exception_from_signal(void *ctx, struct vm_object *exception); void throw_exception_from_trampoline(void *ctx, struct vm_object *exception); void unwind(void); void signal_exception(struct vm_object *obj); -void signal_new_exception(char *class_name, const char *msg); +void signal_new_exception(const char *class_name, const char *msg); void clear_exception(void); void init_exceptions(void); void thread_init_exceptions(void); diff --git a/include/vm/object.h b/include/vm/object.h index 9d50dbf..375b6ba 100644 --- a/include/vm/object.h +++ b/include/vm/object.h @@ -30,7 +30,7 @@ struct vm_object *vm_object_alloc_array(struct vm_class *class, int count); struct vm_object * vm_object_alloc_string(const uint8_t bytes[], unsigned int length); -struct vm_object *new_exception(char *class_name, const char *message); +struct vm_object *new_exception(const char *class_name, const char *message); bool vm_object_is_instance_of(struct vm_object *obj, struct vm_class *class); void vm_object_check_null(struct vm_object *obj); diff --git a/jit/exception.c b/jit/exception.c index c48fe15..ad0ed72 100644 --- a/jit/exception.c +++ b/jit/exception.c @@ -94,7 +94,7 @@ void signal_exception(struct vm_object *exception) exception_holder = exception; } -void signal_new_exception(char *class_name, const char *msg) +void signal_new_exception(const char *class_name, const char *msg) { struct vm_object *e; diff --git a/test/vm/object-stub.c b/test/vm/object-stub.c index 2e7b0da..3cc1586 100644 --- a/test/vm/object-stub.c +++ b/test/vm/object-stub.c @@ -11,7 +11,7 @@ vm_object_alloc_string(const uint8_t bytes[], unsigned int length) return NULL; } -struct vm_object *new_exception(char *class_name, const char *message) +struct vm_object *new_exception(const char *class_name, const char *message) { return NULL; } diff --git a/vm/object.c b/vm/object.c index 1c5bd76..e0e35ff 100644 --- a/vm/object.c +++ b/vm/object.c @@ -178,7 +178,7 @@ vm_object_alloc_string(const uint8_t bytes[], unsigned int length) typedef void (*exception_init_fn)(struct vm_object *, struct vm_object *); -struct vm_object *new_exception(char *class_name, const char *message) +struct vm_object *new_exception(const char *class_name, const char *message) { struct vm_object *message_str; exception_init_fn init; -- 1.6.0.6 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel