From 89c438e149a91fffa74b2669f7e0cd05abc3420f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 20 Apr 2023 14:06:43 +0100 Subject: Declare all dsfs as a dedicated type name 'DSF'. In this commit, 'DSF' is simply a typedef for 'int', so that the new declaration form 'DSF *' translates to the same type 'int *' that dsfs have always had. So all we're doing here is mechanically changing type declarations throughout the code. --- tents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tents.c') diff --git a/tents.c b/tents.c index bfb80ba..d45c456 100644 --- a/tents.c +++ b/tents.c @@ -2006,7 +2006,8 @@ static int *find_errors(const game_state *state, char *grid) { int w = state->p.w, h = state->p.h; int *ret = snewn(w*h + w + h, int); - int *tmp = snewn(w*h, int), *dsf; + int *tmp = snewn(w*h, int); + DSF *dsf; int x, y; /* -- cgit v1.1