Prechádzať zdrojové kódy

hypervisor: Add missing #include; fix typo.

Ludovic Courtès 12 rokov pred
rodič
commit
e37ac8787d

+ 3 - 1
sched_ctx_hypervisor/src/hypervisor_policies/app_driven_policy.c

@@ -16,12 +16,14 @@
 
 #include "policy_tools.h"
 
+#include <sched_ctx_hypervisor_intern.h>
+
 void app_driven_handle_post_exec_hook(unsigned sched_ctx, struct resize_request_entry* resize_requests, int task_tag)
 {
 	struct resize_request_entry *entry;
 
 	/* Check whether 'task_tag' is in the 'resize_requests' set.  */
-	HASH_FIND_INT(resize_requests, task_tag, &entry);
+	HASH_FIND_INT(resize_requests, task_tag, entry);
 	if(entry != NULL)
 	{
 		_resize_to_unknown_receiver(sched_ctx, 1);