altos: Mark local functions 'static'
[fw/altos] / src / kernel / ao_log.c
index 1119cce41f6aeb7378427e400b5dafb871484734..c0a42b295938586cd9f968af2cdb2445ae28e373 100644 (file)
@@ -191,7 +191,7 @@ ao_log_flight(uint8_t slot)
 #endif
 
 static uint8_t
-ao_log_slots()
+ao_log_slots(void)
 {
        return (uint8_t) (ao_storage_log_max / ao_config.flight_log_max);
 }
@@ -405,7 +405,7 @@ ao_log_full(void)
 static struct ao_task ao_log_task;
 #endif
 
-void
+static void
 ao_log_list(void) 
 {
        uint8_t slot;
@@ -425,7 +425,7 @@ ao_log_list(void)
        printf ("done\n");
 }
 
-void
+static void
 ao_log_delete(void) 
 {
        uint8_t slot;
@@ -437,10 +437,9 @@ ao_log_delete(void)
                cmd_flight = -1;
                ao_cmd_lex();
        }
-       ao_cmd_decimal();
+       cmd_flight *= ao_cmd_decimal();
        if (ao_cmd_status != ao_cmd_success)
                return;
-       cmd_flight *= (int16_t) ao_cmd_lex_i;
 
        slots = ao_log_slots();
        /* Look for the flight log matching the requested flight */