Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 165860 Details for
Bug 238060
[PATCH] media-sound/alsa-tools-1.0.17: ignoring return value of 'write', declared with attribute warn_unused_result
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix the typo
warn_unused_result.patch (text/plain), 728 bytes, created by
Magnus Granberg
on 2008-09-19 16:54:44 UTC
(
hide
)
Description:
fix the typo
Filename:
MIME Type:
Creator:
Magnus Granberg
Created:
2008-09-19 16:54:44 UTC
Size:
728 bytes
patch
obsolete
>--- /ac3dec/tools/extract_ac3.c.orig 2008-07-14 08:57:54.000000000 +0000 >+++ /ac3dec/tools/extract_ac3.c 2008-09-18 12:40:45.000000000 +0000 >@@ -160,7 +160,12 @@ > size = (long)(end_pos - cur_pos); > if(size > count) > { >- write(outfd, cur_pos, count); >+ if(write(outfd, cur_pos, count) != count) >+ { >+ fprintf(stderr, "Error: unexpected end of stream\n"); >+ return; >+ } >+ > cur_pos +=count; > if(cur_pos == end_pos) > { >@@ -171,7 +176,11 @@ > } > else if(size > 0) > { >- write(outfd, cur_pos, size); >+ if(write(outfd, cur_pos, size) != size) >+ { >+ fprintf(stderr, "Error: unexpected end of stream\n"); >+ return; >+ } > } > > while(count)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 238060
:
165765
| 165860