declar rc as int

This commit is contained in:
Isaac Connor 2020-11-11 20:05:47 -05:00
parent 77c177c482
commit f91dcc9b60
1 changed files with 1 additions and 1 deletions

View File

@ -2584,7 +2584,7 @@ int Monitor::Capture() {
"VALUES (%d, %.2lf, %u, 'Connected') ON DUPLICATE KEY UPDATE " "VALUES (%d, %.2lf, %u, 'Connected') ON DUPLICATE KEY UPDATE "
"CaptureFPS = %.2lf, CaptureBandwidth=%u, Status='Connected'", "CaptureFPS = %.2lf, CaptureBandwidth=%u, Status='Connected'",
id, fps, new_capture_bandwidth, fps, new_capture_bandwidth); id, fps, new_capture_bandwidth, fps, new_capture_bandwidth);
rc = mysql_query(&dbconn, sql); int rc = mysql_query(&dbconn, sql);
db_mutex.unlock(); db_mutex.unlock();
if ( rc ) { if ( rc ) {
Error("Can't run query %s: %s", sql, mysql_error(&dbconn)); Error("Can't run query %s: %s", sql, mysql_error(&dbconn));