control: tags 1096643 + patch control: tags 1096643 + pending Patch attached fixes the getopt prototype to fix gcc-15 build error. Will be submitting upload on mentor. Regards, Syed Shahrukh Hussain.
diff --git a/flip.c b/flip.c
index 0e1d8c5..75c9c12 100644
--- a/flip.c
+++ b/flip.c
@@ -24,7 +24,7 @@ enum state { NONE, SAWCR, SAWLF, SAWCRLF, SAWCTRLZ };
void usage PARMS ((void));
void give_help PARMS ((void));
void flip_exit PARMS ((int));
-int getopt PARMS ((int argc, char **argv, char *options));
+int getopt PARMS ((int argc, char * const* argv, const char *options));
void doarg PARMS ((char *, enum choices));
int dofile PARMS ((char *, enum choices));
char *nextfile PARMS ((int, char *, int));
@@ -548,8 +548,7 @@ int sig;
#define ERRSIZE 200
/* prints error message via perror */
-void error (msg1, msg2)
-char *msg1, *msg2;
+void error (char *msg1, char *msg2)
{
char buf[ERRSIZE];
strcpy (buf, myname);
Attachment:
signature.asc
Description: PGP signature