From eba8e6540e9eeefa6a1c5db71fdadc7ffba726b4 Mon Sep 17 00:00:00 2001 From: giomba Date: Sun, 14 Apr 2019 15:27:32 +0200 Subject: [PATCH] [product] ids from uint8_t to uint32_t --- project/common/supermarket_net.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/common/supermarket_net.h b/project/common/supermarket_net.h index 50d42cb74..6fd5fe17f 100644 --- a/project/common/supermarket_net.h +++ b/project/common/supermarket_net.h @@ -51,7 +51,7 @@ typedef struct basket_msg { enum message_type msg_type; uint8_t n_products; - uint8_t customer_id; /* TODO: why? you already know it */ + uint32_t customer_id; }basket_msg; typedef struct item_msg @@ -63,15 +63,15 @@ typedef struct item_msg typedef struct cash_out_msg { enum message_type msg_type; - uint8_t customer_id; + uint32_t customer_id; }cash_out_msg; typedef struct product_msg { enum message_type msg_type; - uint8_t customer_id; - uint8_t product_id; + uint32_t customer_id; + uint32_t product_id; float price; }product_msg;