From 001e114b8d59f4eaf2a314a2bc5e57078afdf82f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 10 Nov 2013 09:20:52 -0500 Subject: Fix whitespace issues found by git diff --check, add gitattributes Set per file type attributes in .gitattributes to fine-tune whitespace checks. With the associated cleanups, the tree is now clean for git --- src/interfaces/ecpg/test/preproc/autoprep.pgc | 4 ++-- src/interfaces/ecpg/test/preproc/type.pgc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interfaces/ecpg/test/preproc') diff --git a/src/interfaces/ecpg/test/preproc/autoprep.pgc b/src/interfaces/ecpg/test/preproc/autoprep.pgc index eeeb879d105..31c3ab7a56e 100644 --- a/src/interfaces/ecpg/test/preproc/autoprep.pgc +++ b/src/interfaces/ecpg/test/preproc/autoprep.pgc @@ -7,7 +7,7 @@ EXEC SQL INCLUDE ../regression; static void test(void) { EXEC SQL BEGIN DECLARE SECTION; - int item[4], ind[4], i = 1; + int item[4], ind[4], i = 1; int item1, ind1; char sqlstr[64] = "SELECT item2 FROM T ORDER BY item2 NULLS LAST"; EXEC SQL END DECLARE SECTION; @@ -30,7 +30,7 @@ static void test(void) { EXEC SQL SELECT Item2 INTO :item:ind FROM T ORDER BY Item2 NULLS LAST; for (i=0; i<4; i++) - printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]); + printf("item[%d] = %d\n", i, ind[i] ? -1 : item[i]); EXEC SQL DECLARE C CURSOR FOR SELECT Item1 FROM T; diff --git a/src/interfaces/ecpg/test/preproc/type.pgc b/src/interfaces/ecpg/test/preproc/type.pgc index 359a7f49a0c..3200c91dc24 100644 --- a/src/interfaces/ecpg/test/preproc/type.pgc +++ b/src/interfaces/ecpg/test/preproc/type.pgc @@ -31,7 +31,7 @@ main (void) c ptr = NULL; struct varchar { - int len; + int len; char text[10]; } vc; EXEC SQL END DECLARE SECTION; -- cgit v1.2.3