From a277559f30e62ec72a7a84f2caacec9438b924f4 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 14 Feb 2023 10:01:32 -0500 Subject: [PATCH] cleaned up 32 --- citadel/utils/ctdl3264_prep.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/citadel/utils/ctdl3264_prep.sh b/citadel/utils/ctdl3264_prep.sh index fc5cdca0f..dd27699f7 100755 --- a/citadel/utils/ctdl3264_prep.sh +++ b/citadel/utils/ctdl3264_prep.sh @@ -14,15 +14,22 @@ convert_struct() { | sed s/"^struct $1 {"/"struct ${1}_32 {"/g \ | sed s/"int "/"int32_t "/g \ | sed s/"long "/"int32_t "/g \ - | sed s/"time_t "/"int32_t "/g + | sed s/"time_t "/"int32_t "/g \ + | sed s/"struct ExpirePolicy "/"struct ExpirePolicy_32 "/g + echo '' } # Here we go. Let's make this thing happen. ( + + echo '// This file was automatically generated by ctdl3264_prep.sh' + echo '// Attempting to modify it would be an exercise in futility.' + echo '' + convert_struct "ctdluser" - convert_struct "ctdlroom" convert_struct "ExpirePolicy" + convert_struct "ctdlroom" convert_struct "floor" ) >utils/ctdl3264_structs.h -- 2.39.2