mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Massive cleanup
Mostly coding style and whitespace changes plus making lots of functions static that have no need to be extern. This also helped find a bit of code that is actually no longer used. This should have absolutely no functional impact - all changes should be purely cosmetic. But it removes a bunch of lines of code and makes the rest easier to read. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
468d3f28f9
commit
e3a8ed5183
17 changed files with 103 additions and 164 deletions
|
@ -17,7 +17,7 @@ static int get_from_registry(HKEY hkey, const char *key)
|
|||
LONG success;
|
||||
|
||||
success = RegQueryValueEx(hkey, (LPCTSTR)TEXT(key), NULL, NULL,
|
||||
(LPBYTE) &value, (LPDWORD)&len );
|
||||
(LPBYTE) &value, (LPDWORD)&len);
|
||||
if (success != ERROR_SUCCESS)
|
||||
return -1;
|
||||
return value != 0;
|
||||
|
@ -97,7 +97,7 @@ const void *subsurface_get_conf(char *name)
|
|||
return NULL;
|
||||
blen = 0;
|
||||
/* lest try to load the string in chunks of 'csize' bytes until it fits */
|
||||
while(ret == ERROR_MORE_DATA) {
|
||||
while (ret == ERROR_MORE_DATA) {
|
||||
blen += csize;
|
||||
wstring = (wchar_t *)realloc(wstring, blen * sizeof(wchar_t));
|
||||
ret = RegQueryValueExW(hkey, (LPCWSTR)wname, NULL, NULL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue