Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
d3x0r committed May 12, 2024
1 parent 2e45f49 commit 6cc1864
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/linux_ban_scanner/arp_scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void add_router( CTEXTSTR addr, CTEXTSTR router )
{
struct address_minmax *router_mm;
if( !lbs.addressTree )
lbs.addressTree = CreateBinaryTreeEx( StrCmp, NULL );
lbs.addressTree = CreateBinaryTreeEx( (GenericCompare)StrCmp, NULL );
router_mm = FindInBinaryTree( lbs.addressTree, (uintptr_t)router );
if( !router_mm ) {
router_mm = New( struct address_minmax );
Expand Down
2 changes: 1 addition & 1 deletion src/utils/linux_ban_scanner/syslog_scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void AddBan( const char *IP )
static char query[256];
TEXTSTR* result = NULL;
snprintf( query, 256, "select id from banlist where IP=`%s`", IP );
if( SQLQuery( lbs.db, query, &result ) ) {
if( SQLQuery( lbs.db, query, (char const***)&result ) ) {
if( result && result[0] ) {
SQLEndQuery( lbs.db );
printf( "already banned %s\n", IP );
Expand Down

0 comments on commit 6cc1864

Please sign in to comment.