Bug 11812 - Wrong return value of fwrite() in dri/i965/brw_aub.c
Summary: Wrong return value of fwrite() in dri/i965/brw_aub.c
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Eric Anholt
QA Contact:
Keywords: janitor, patch
: 12487 (view as bug list)
Depends on:
Reported: 2007-08-02 06:42 UTC by Roland "Test-tools" Bär
Modified: 2007-09-24 13:48 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

adjusts the checks... (2.37 KB, patch)
2007-08-02 06:43 UTC, Roland "Test-tools" Bär
Details | Splinter Review

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.