mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-18 11:05:18 +00:00
fix typos
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@417 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
00e60c32d7
commit
f34f7e0336
@ -376,7 +376,7 @@ void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
|
|||||||
{
|
{
|
||||||
int state;
|
int state;
|
||||||
|
|
||||||
if ( !p_client_buffer !! client_buffer_size <= 0 )
|
if ( !p_client_buffer || client_buffer_size <= 0 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (GETSYSCTL("hw.acpi.acline", state)) {
|
if (GETSYSCTL("hw.acpi.acline", state)) {
|
||||||
@ -387,9 +387,9 @@ void get_acpi_ac_adapter( char * p_client_buffer, size_t client_buffer_size )
|
|||||||
|
|
||||||
|
|
||||||
if (state)
|
if (state)
|
||||||
strncpy( p_client_buffer, client_buffer_size, "Running on AC Power" );
|
strncpy( p_client_buffer, "Running on AC Power", client_buffer_size );
|
||||||
else
|
else
|
||||||
strncpy( p_client_buffer, client_buffer_size, "Running on battery" );
|
strncpy( p_client_buffer, "Running on battery", client_buffer_size );
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user