replace <values.h> -> <limits.h> and fix K&R style related warning

This commit is contained in:
SASANO Takayoshi 2023-02-02 16:02:35 +09:00
parent c44f485572
commit e842533f83

View file

@ -71,7 +71,7 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include <values.h> #include <limits.h>
#include <string.h> #include <string.h>
/*void exit(), free();*/ /*void exit(), free();*/
@ -148,7 +148,7 @@ static void msginit ();
static int msgleng (); static int msgleng ();
static void msgadd (); static void msgadd ();
static void biggermsg (); static void biggermsg ();
static int eputc (unsigned char c); static int eputc ();
double mf_ticks2sec (unsigned long ticks, int division, unsigned long tempo); double mf_ticks2sec (unsigned long ticks, int division, unsigned long tempo);
int mf_write_meta_event (); int mf_write_meta_event ();
@ -328,7 +328,7 @@ readtrack () /* read a track chunk */
if (Mf_interactive) if (Mf_interactive)
{ {
Mf_toberead = MAXINT; Mf_toberead = INT_MAX;
} }
else else
{ {