diff options
author | scratko <m@scratko.xyz> | 2024-08-03 03:39:46 +0300 |
---|---|---|
committer | scratko <m@scratko.xyz> | 2024-08-03 03:39:46 +0300 |
commit | 9e9919b897b00ff23aee6581471b4d7b4567bf4a (patch) | |
tree | e76a6801606510dc357de803c76a16756727dca3 /card_stack.c | |
parent | 0733ff24c89c8208b7e5d2789d0913d435b9e0fa (diff) | |
download | durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.tar.gz durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.tar.bz2 durak-9e9919b897b00ff23aee6581471b4d7b4567bf4a.zip |
Compilation succeeds
Diffstat (limited to 'card_stack.c')
-rw-r--r-- | card_stack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/card_stack.c b/card_stack.c index b9b61f6..aa8af71 100644 --- a/card_stack.c +++ b/card_stack.c @@ -8,9 +8,9 @@ void init_stack(player_cards *deck) *deck = NULL; } -void push_stack(player_cards *deck, char *str) +void push_stack(player_cards *deck, const char *str) { - struct card_stack_item new_card = malloc(sizeof(struct card_stack_item)); + struct card_stack_item *new_card = malloc(sizeof(struct card_stack_item)); new_card->str = str; new_card->next = *deck; if(new_card->next) @@ -24,7 +24,7 @@ int is_empty_stack(const player_cards deck) return !deck; } -int find_out_card_quantity_in_deck(const player_cards deck) +int find_out_card_quantity_in_deck(player_cards deck) { int counter = 0; |