Description: Fix FTBFS with GCC-15 (Closes: #1096435).
Author: Sven Geuer <sge@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096435
Forwarded: no
Last-Update: 2025-09-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cisco7crack.c
+++ b/cisco7crack.c
@@ -126,7 +126,7 @@
                return ERR_INPUT_ILLEGAL_CHAR;
           }
           printf("%c",
-                 (((ptr1 - hex) << 4) + (ptr2 - hex)) ^ magic[index++]);
+                 (int)((((ptr1 - hex) << 4) + (ptr2 - hex)) ^ magic[index++]));
           index %= magic_size;
      }
      printf("\n");
--- a/cisco7crack.h
+++ b/cisco7crack.h
@@ -52,7 +52,6 @@
 };                              /* "dsfd;kfoA,.iyewrkldJKDHSUB" */
 const unsigned int magic_size = sizeof(magic) / sizeof(magic[0]);
 
-typedef enum e_bool { false = 0, true } bool;
 typedef struct s_options {      /* arguments passed on command line */
      bool crypt;
      bool decrypt;
