commit | c6b9039fd94aede59ac1086a379955137fc8e1b8 | [log] [tgz] |
---|---|---|
author | John Koleszar <jkoleszar@google.com> | Fri Jul 13 15:21:29 2012 -0700 |
committer | John Koleszar <jkoleszar@google.com> | Tue Jul 17 11:46:03 2012 -0700 |
tree | f9b20b2ca2114fe9303c8226bb3b368568fd5509 | |
parent | 8697c6e454e02c6cf644daa9d29fabd07e846f18 [diff] [blame] |
Restyle code Approximate the Google style guide[1] so that that there's a written document to follow and tools to check compliance[2]. [1]: http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml [2]: http://google-styleguide.googlecode.com/svn/trunk/cpplint/cpplint.py Change-Id: Idf40e3d8dddcc72150f6af127b13e5dab838685f
diff --git a/tools_common.c b/tools_common.c index d188bbe..fddf861 100644 --- a/tools_common.c +++ b/tools_common.c
@@ -14,11 +14,10 @@ #include <fcntl.h> #endif -FILE* set_binary_mode(FILE *stream) -{ - (void)stream; +FILE *set_binary_mode(FILE *stream) { + (void)stream; #ifdef _WIN32 - _setmode(_fileno(stream), _O_BINARY); + _setmode(_fileno(stream), _O_BINARY); #endif - return stream; + return stream; }