Commit a8234831 authored by Lubomir Bulej's avatar Lubomir Bulej

Cosmetic changes

parent df520795
......@@ -197,7 +197,7 @@ static void
__jvmti_enable_events (jvmtiEnv * jvmti, jvmtiEvent * events, size_t count) {
for (unsigned int i = 0; i < count; i++) {
jvmtiEvent event = events [i];
jvmtiError event_error = (*jvmti)->SetEventNotificationMode (
jvmtiError error = (*jvmti)->SetEventNotificationMode (
jvmti, JVMTI_ENABLE, event, NULL
);
......
......@@ -3,14 +3,13 @@
#include "common.h"
#include <jvmti.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
//
#include <jvmti.h>
void die_with_jvmti_error (
jvmtiEnv * jvmti, jvmtiError error, const char * format, va_list args
);
//
unsigned char * jvmti_alloc_copy (jvmtiEnv * jvmti, const void * src, size_t size);
......@@ -35,6 +34,12 @@ jlong jvmti_get_object_tag (jvmtiEnv * jvmti, jobject object);
jlong jvmti_set_object_tag (jvmtiEnv * jvmti, jobject object, jlong tag);
//
void die_with_jvmti_error (
jvmtiEnv * jvmti, jvmtiError error, const char * format, va_list args
);
/**
* Checks whether a JVMTI invocation returned an error. Every JVMTI interface
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment