소스 검색

Limpieza de warnings

Agustín Cangiani 10 년 전
부모
커밋
bc9bafbd9c
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      sched_rsjf.cpp
  2. 2 2
      sched_sjf.cpp

+ 2 - 2
sched_rsjf.cpp

@@ -51,7 +51,7 @@ int SchedRSJF::next_process(int cur_pid) {
 }
 
 int SchedRSJF::tick(int core, const enum Motivo m) {
-    uint cur_pid = current_pid(core);
+    int cur_pid = current_pid(core);
 
     if (cur_pid == IDLE_TASK || m == EXIT) {
         // Caso donde m == EXIT o core IDLE
@@ -77,7 +77,7 @@ int SchedRSJF::tick(int core, const enum Motivo m) {
 	    } else {
             return cur_pid;  // El proceso esta corriendo
         }
-    } else if (m ==BLOCK) {
+    } else {
         // Proceso con estado BLOCK, no sucede en este scheduler
         // pero si pasa lo esperamos hasta que termine
         return cur_pid;

+ 2 - 2
sched_sjf.cpp

@@ -33,7 +33,7 @@ void SchedSJF::unblock(int pid) {
 }
 
 int SchedSJF::tick(int cpu, const enum Motivo m) {
-    uint cur_pid = current_pid(cpu);
+    int cur_pid = current_pid(cpu);
 
     if (cur_pid == IDLE_TASK || m == EXIT) {
         // Caso donde m == EXIT o cpu IDLE
@@ -48,7 +48,7 @@ int SchedSJF::tick(int cpu, const enum Motivo m) {
         }
     } else if (m == TICK) {
         return cur_pid;  // El proceso esta corriendo
-    } else if (m ==BLOCK) {
+    } else {
         // Proceso con estado BLOCK, no sucede en este scheduler
         // pero si pasa lo esperamos hasta que termine
         return cur_pid;