[Fix] A few warnings.
This commit is contained in:
parent
c8b99cb35f
commit
6099849f4f
@ -2,6 +2,8 @@
|
||||
#include <string.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "base64.h"
|
||||
|
||||
/* Encode table - base64 alphabet is defined by the rfc */
|
||||
static const char cb64[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
/* Generate decode table at compile time. */
|
||||
|
@ -108,10 +108,8 @@ void faction_modPlayer(int f, int mod) {
|
||||
}
|
||||
|
||||
int faction_getPlayer(int f) {
|
||||
if(faction_isFaction(f)) {
|
||||
if(faction_isFaction(f)) {
|
||||
return faction_stack[f].player;
|
||||
}
|
||||
} else {
|
||||
DEBUG("%d is an invalid faction/alliance", f);
|
||||
return -1000;
|
||||
|
@ -156,7 +156,7 @@ int pilot_rmOutfit(Pilot* pilot, Outfit* outfit, int quantity);
|
||||
char* pilot_getOutfits(Pilot* pilot);
|
||||
void pilot_calcStats(Pilot* pilot);
|
||||
/* Normal cargo. */
|
||||
int pilot_cagoUsed(Pilot* pilot); /* Get amount of cargo onboard. */
|
||||
int pilot_cargoUsed(Pilot* pilot); /* Get amount of cargo onboard. */
|
||||
int pilot_cargoFree(Pilot* p); /* Cargo space. */
|
||||
int pilot_addCargo(Pilot* pilot, Commodity* cargo, int quantity);
|
||||
int pilot_rmCargo(Pilot* pilot, Commodity* cargo, int quantity);
|
||||
|
Loading…
Reference in New Issue
Block a user