[PATCH 1/2] Get rid of some warnings: -Wunused-result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



No problem but.....

'Twas brillig, and Maarten Bosmans at 19/03/11 12:59 did gyre and gimble:

> --- a/src/modules/module-default-device-restore.c
> +++ b/src/modules/module-default-device-restore.c
> @@ -64,8 +64,8 @@ static void load(struct userdata *u) {
>          char ln[256] = "";
>          pa_sink *s;
>  
> -        (void) fgets(ln, sizeof(ln)-1, f);
> -        pa_strip_nl(ln);
> +        if(fgets(ln, sizeof(ln)-1, f))
> +            pa_strip_nl(ln);

Whitespace error!!!!! :p

I've fixed it when applying :)

Col


-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]




[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux