eliminated duplicate initialization
Local variables which are never read before the first assignment don't need initialization. Saves a few bytes of text. Also don't reset variables which are never read until function return. git-svn-id: https://svn.musicpd.org/mpd/trunk@7199 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
committed by
Eric Wong
parent
54b544c2f4
commit
c5b524e376
@@ -168,7 +168,7 @@ static void addUnsupportedParam(OssData * od, int param, int val)
|
||||
|
||||
static void removeSupportedParam(OssData * od, int param, int val)
|
||||
{
|
||||
int i = 0;
|
||||
int i;
|
||||
int j = 0;
|
||||
int idx = getIndexForParam(param);
|
||||
|
||||
@@ -185,7 +185,7 @@ static void removeSupportedParam(OssData * od, int param, int val)
|
||||
|
||||
static void removeUnsupportedParam(OssData * od, int param, int val)
|
||||
{
|
||||
int i = 0;
|
||||
int i;
|
||||
int j = 0;
|
||||
int idx = getIndexForParam(param);
|
||||
|
||||
@@ -481,7 +481,7 @@ fail:
|
||||
|
||||
static int oss_openDevice(AudioOutput * audioOutput)
|
||||
{
|
||||
int ret = -1;
|
||||
int ret;
|
||||
OssData *od = audioOutput->data;
|
||||
AudioFormat *audioFormat = &audioOutput->outAudioFormat;
|
||||
|
||||
|
||||
@@ -292,7 +292,7 @@ static int myShout_handleError(ShoutData * sd, int err)
|
||||
|
||||
static int write_page(ShoutData * sd)
|
||||
{
|
||||
int err = 0;
|
||||
int err;
|
||||
|
||||
shout_sync(sd->shoutConn);
|
||||
err = shout_send(sd->shoutConn, sd->og.header, sd->og.header_len);
|
||||
|
||||
Reference in New Issue
Block a user