summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deymo <deymo@chromium.org>2014-08-25 16:34:52 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-06 01:14:31 +0000
commitf1c553ea137e7488d84149520253779169dc2f32 (patch)
treeec38ec802e2924d38d2893268c69f3f2b9cca712
parentf75da6293ed9285ff55281d12b57cc32fe48eeda (diff)
downloadvboot-f1c553ea137e7488d84149520253779169dc2f32.tar.gz
Fix include quotes.
System libraries such as string.h and errno.h should be included with <> instead of "" to avoid including them from the local directory. BRANCH=None BUG=None TEST=FEATURES="test" emerge-link vboot_reference Change-Id: I6734e14223fdad9060c6518790f52f1bcfcdf8e0 Reviewed-on: https://chromium-review.googlesource.com/214058 Commit-Queue: Alex Deymo <deymo@chromium.org> Tested-by: Alex Deymo <deymo@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/227849 Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--cgpt/flash_ts.c7
-rw-r--r--cgpt/flash_ts_drv.c8
-rw-r--r--tests/cgptlib_test.c2
3 files changed, 9 insertions, 8 deletions
diff --git a/cgpt/flash_ts.c b/cgpt/flash_ts.c
index e5e461d9..f37c4acc 100644
--- a/cgpt/flash_ts.c
+++ b/cgpt/flash_ts.c
@@ -13,9 +13,10 @@
#include "flash_ts.h"
-#include "errno.h"
-#include "stdio.h"
-#include "string.h"
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+
#include "utility.h"
// These match the linux driver
diff --git a/cgpt/flash_ts_drv.c b/cgpt/flash_ts_drv.c
index 01a68951..4709b37c 100644
--- a/cgpt/flash_ts_drv.c
+++ b/cgpt/flash_ts_drv.c
@@ -6,12 +6,12 @@
* files for more details.
*/
-#include "flash_ts.h"
+#include <errno.h>
+#include <stdio.h>
+#include <string.h>
+#include "flash_ts.h"
#include "cgpt.h"
-#include "errno.h"
-#include "stdio.h"
-#include "string.h"
inline int page_to_sector(const nand_geom *nand, int page) {
return page * (nand->szofpg / nand->szofsector);
diff --git a/tests/cgptlib_test.c b/tests/cgptlib_test.c
index e7a9748a..be4c7159 100644
--- a/tests/cgptlib_test.c
+++ b/tests/cgptlib_test.c
@@ -3,6 +3,7 @@
* found in the LICENSE file.
*/
+#include <errno.h>
#include <string.h>
#include "../cgpt/cgpt.h"
@@ -11,7 +12,6 @@
#include "cgptlib_test.h"
#include "crc32.h"
#include "crc32_test.h"
-#include "errno.h"
#include "gpt.h"
#include "mtdlib.h"
#include "mtdlib_unused.h"