Fixed compiler warnings
This commit is contained in:
@ -84,7 +84,7 @@ void *CanRxListener::Run(void *arg)
|
|||||||
if ( nread == 0 )
|
if ( nread == 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char timebuf[32];
|
char timebuf[100];
|
||||||
|
|
||||||
if ( Logging.IsLogging() )
|
if ( Logging.IsLogging() )
|
||||||
{
|
{
|
||||||
|
|||||||
@ -97,7 +97,7 @@ void *CanTxGenerator::Run(void *arg)
|
|||||||
struct tm tm;
|
struct tm tm;
|
||||||
gettimeofday( &tv, NULL );
|
gettimeofday( &tv, NULL );
|
||||||
gmtime_r( &tv.tv_sec, &tm );
|
gmtime_r( &tv.tv_sec, &tm );
|
||||||
char buf[32];
|
char buf[100];
|
||||||
sprintf( buf, "%4d/%2d/%2d-%2d:%2d:%2d.%03ld",
|
sprintf( buf, "%4d/%2d/%2d-%2d:%2d:%2d.%03ld",
|
||||||
tm.tm_year+1900, tm.tm_mon, tm.tm_mday,
|
tm.tm_year+1900, tm.tm_mon, tm.tm_mday,
|
||||||
tm.tm_hour, tm.tm_min, tm.tm_sec,
|
tm.tm_hour, tm.tm_min, tm.tm_sec,
|
||||||
|
|||||||
@ -37,7 +37,7 @@ typedef struct _uri_parts {
|
|||||||
char pass[16];
|
char pass[16];
|
||||||
char host[256];
|
char host[256];
|
||||||
char port[16];
|
char port[16];
|
||||||
char path[1204];
|
char path[1024];
|
||||||
int rate;
|
int rate;
|
||||||
} uri_parts;
|
} uri_parts;
|
||||||
|
|
||||||
|
|||||||
@ -154,7 +154,7 @@ int uri_parse( const char *uri, uri_parts *parsed )
|
|||||||
strncpy( parsed->port, port, sizeof(parsed->port) );
|
strncpy( parsed->port, port, sizeof(parsed->port) );
|
||||||
}
|
}
|
||||||
if ( path )
|
if ( path )
|
||||||
strncat( parsed->path, path, sizeof(parsed->path) );
|
strncat( parsed->path, path, sizeof(parsed->path)-1 );
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user