mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Use same variable name in definition and declaration
This commit is contained in:
+1
-2
@@ -49,8 +49,7 @@ void ffStrbufEnsureCapacity(FFstrbuf* strbuf, uint32_t capacity)
|
||||
|
||||
if(capacity == UINT32_MAX)
|
||||
{
|
||||
--capacity; //This is required to silence a gcc compiler warning
|
||||
fprintf(stderr, "Warning: ffStrbufEnsureCapacity called with UINT32_MAX. Highest allowed value is UINT32_MAX - 1. Exiting.\n");
|
||||
fputs("Warning: ffStrbufEnsureCapacity called with UINT32_MAX. Highest allowed value is UINT32_MAX - 1. Exiting.\n", stderr);
|
||||
exit(812);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ void ffStrbufInit(FFstrbuf* strbuf);
|
||||
void ffStrbufInitA(FFstrbuf* strbuf, uint32_t allocate);
|
||||
void ffStrbufInitCopy(FFstrbuf* strbuf, const FFstrbuf* src);
|
||||
|
||||
void ffStrbufEnsureCapacity(FFstrbuf* strbuf, uint32_t allocate);
|
||||
void ffStrbufEnsureCapacity(FFstrbuf* strbuf, uint32_t capacity);
|
||||
void ffStrbufEnsureFree(FFstrbuf* strbuf, uint32_t free);
|
||||
|
||||
uint32_t ffStrbufGetFree(const FFstrbuf* strbuf);
|
||||
|
||||
Reference in New Issue
Block a user