Apply some const

This commit is contained in:
Michael Vines
2018-10-29 19:56:24 -07:00
parent 4d21ee0546
commit ee27e9e1cf
5 changed files with 23 additions and 23 deletions

View File

@@ -54,7 +54,7 @@ SOL_FN_PREFIX bool update(Dashboard *self, Game *game, SolPubkey *game_pubkey) {
}
/**
* Numer of SolKeyedAccounts expected. The program should bail if an
* Number of SolKeyedAccounts expected. The program should bail if an
* unexpected number of accounts are passed to the program's entrypoint
*
* accounts[0] doesn't matter, anybody can cause a dashboard update
@@ -63,13 +63,13 @@ SOL_FN_PREFIX bool update(Dashboard *self, Game *game, SolPubkey *game_pubkey) {
*/
#define NUM_KA 3
extern bool entrypoint(uint8_t *input) {
extern bool entrypoint(const uint8_t *input) {
SolKeyedAccounts ka[NUM_KA];
uint8_t *data;
uint64_t data_len;
int err = 0;
if (!sol_deserialize((uint8_t *)input, NUM_KA, ka, &data, &data_len)) {
if (!sol_deserialize(input, NUM_KA, ka, &data, &data_len)) {
return false;
}