mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
This commit is contained in:
@@ -138,7 +138,7 @@ int apb_alloc(FAR struct audio_buf_desc_s *bufdesc)
|
||||
{
|
||||
/* Populate the buffer contents */
|
||||
|
||||
memset(pBuf, bufsize, 0);
|
||||
memset(pBuf, 0, bufsize);
|
||||
pBuf->i.channels = 1;
|
||||
pBuf->crefs = 1;
|
||||
pBuf->nmaxbytes = bufdesc->numbytes;
|
||||
|
||||
@@ -83,6 +83,6 @@
|
||||
|
||||
int clock_isleapyear(int year)
|
||||
{
|
||||
return year % 400 ? (year % 100 ? (year % 4 ? 0 : 1) : 0) : 1;
|
||||
return (year % 400) ? ((year % 100) ? ((year % 4) ? 0 : 1) : 0) : 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user