back to scratko.xyz
aboutsummaryrefslogtreecommitdiff
path: root/card_stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'card_stack.c')
-rw-r--r--card_stack.c6
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;