Bug 11812

Summary: Wrong return value of fwrite() in dri/i965/brw_aub.c
Product: Mesa Reporter: Roland "Test-tools" Bär <roland>
Component: Drivers/DRI/i965Assignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: safari-ml-freedesktop-bugzilla-kv7oy2vp4mc4jvudr6vccb7oetrzzqe7fwnhahno
Version: unspecifiedKeywords: janitor, patch
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: adjusts the checks...

Description Roland "Test-tools" Bär 2007-08-02 06:42:47 UTC
fwrite return the number of elements (3rd parameter, here always 1) written,
at least 0 (return value is size_t and unsigned). In success case we have 
here always an return value of 1, in fail case an return value of 0.

Please apply attached patch
Comment 1 Roland "Test-tools" Bär 2007-08-02 06:43:56 UTC
Created attachment 10963 [details] [review]
adjusts the checks...
Comment 2 Eric Anholt 2007-09-24 13:48:04 UTC
Fix pushed.  Thanks!
Comment 3 Eric Anholt 2007-09-24 13:48:16 UTC
*** Bug 12487 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.