summaryrefslogtreecommitdiff
path: root/regtest
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2007-04-16 23:54:51 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2007-04-16 23:54:51 +1000
commit28714c9ee014a4b3c966cb601fcd1944d55e29dd (patch)
tree7b780b9191ab25d81591580c0ea65cd4fb638e9c /regtest
parentb05c4a46aac272a58fb969a4e925bdf453f257d8 (diff)
Fix compile warnings for 64 bit systems.
Diffstat (limited to 'regtest')
-rw-r--r--regtest/database.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regtest/database.c b/regtest/database.c
index a643179..7830d68 100644
--- a/regtest/database.c
+++ b/regtest/database.c
@@ -185,8 +185,8 @@ db_add_file (REG_DB * db_handle, const char * filepath)
snprintf (db->cmdbuf, sizeof (db->cmdbuf), "insert into sndfile "
"(fname, fpath, srate, frames, channels, format, checksum, logbuf) values"
- "('%s','%s',%d,'%lld', %d, '0x%08x', '0x%08x', '%s');",
- db->filename, db->pathname, info.samplerate, info.frames, info.channels, info.format, checksum, db->logbuf) ;
+ "('%s','%s',%d,'%ld', %d, '0x%08x', '0x%08x', '%s');",
+ db->filename, db->pathname, info.samplerate, (long) info.frames, info.channels, info.format, checksum, db->logbuf) ;
if (strlen (db->cmdbuf) >= sizeof (db->cmdbuf) - 1)
{ printf ("strlen (db->cmdbuf) too long.\n") ;
@@ -368,7 +368,7 @@ check_file_by_ekey (REGTEST_DB * db, int ekey)
if (strcmp (result [k], "frames") == 0)
{ if (strtoll (result [k + cols], NULL, 10) == info.frames)
continue ;
- printf ("\n\nError : frames doesn't match : %s == %lld\n", result [k + cols], info.frames) ;
+ printf ("\n\nError : frames doesn't match : %s == %ld\n", result [k + cols], (long) info.frames) ;
} ;
if (strcmp (result [k], "channels") == 0)