From: Marco van Wieringen Date: Sun, 21 Feb 2010 10:39:37 +0000 (+0100) Subject: Small indent changes X-Git-Tag: Release-5.0.1~20 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e85c34e256854a6f883a06fd28e0817e0b4c396b;p=bacula%2Fbacula Small indent changes --- diff --git a/bacula/src/cats/ingres.c b/bacula/src/cats/ingres.c index 4adb7b6c82..a7834d501c 100755 --- a/bacula/src/cats/ingres.c +++ b/bacula/src/cats/ingres.c @@ -1,4 +1,3 @@ - /* Bacula® - The Network Backup Solution diff --git a/bacula/src/cats/myingres.c b/bacula/src/cats/myingres.c index bb89a10e0e..c72f72a58d 100644 --- a/bacula/src/cats/myingres.c +++ b/bacula/src/cats/myingres.c @@ -35,7 +35,7 @@ short INGgetCols(const char *stmt) IIsqPrepare(0,(char *)"s1",(char *)0,0,stmtd); } /* # line 39 "myingres.sc" */ /* host code */ - if (INGcheck() < 0 ) { + if (INGcheck() < 0) { free(stmtd); free(sqlda); return -1; @@ -46,7 +46,7 @@ short INGgetCols(const char *stmt) IIsqDescribe(0,(char *)"s1",sqlda,0); } /* # line 45 "myingres.sc" */ /* host code */ - if (INGcheck() < 0 ) { + if (INGcheck() < 0) { free(stmtd); free(sqlda); return -1; @@ -160,7 +160,7 @@ void INGfreeINGresult(INGresult *ing_res) /* * Free all rows and fields, then res, not descriptor! */ - if (ing_res != NULL ) { + if (ing_res != NULL) { /* * Use of rows is a nasty workaround til I find the reason, * why aggregates like max() don't work @@ -249,7 +249,7 @@ void INGfreeRowSpace(ING_ROW *row, IISQLDA *sqlda) if (row == NULL || sqlda == NULL) { return; } - for (i = 0; i < sqlda->sqld; ++i ) { + for (i = 0; i < sqlda->sqld; ++i) { free(row->sqlvar[i].sqldata); free(row->sqlvar[i].sqlind); } @@ -364,7 +364,7 @@ int INGnfields(const INGresult *res) } char *INGfname(const INGresult *res, int column_number) { - if ( (column_number > res->num_fields) || (column_number < 0) ) { + if ((column_number > res->num_fields) || (column_number < 0)) { return NULL; } else { return res->fields[column_number].name; @@ -453,7 +453,7 @@ INGconn *INGconnectDB(char *dbname, char *user, char *passwd) strcpy(ingdbname,dbname); if (user != NULL) { strcpy(ingdbuser,user); - if ( passwd != NULL) { + if (passwd != NULL) { strcpy(ingdbpasw,passwd); } else { strcpy(ingdbpasw, ""); diff --git a/bacula/src/cats/myingres.sc b/bacula/src/cats/myingres.sc index 2a61fe20c0..2505209077 100644 --- a/bacula/src/cats/myingres.sc +++ b/bacula/src/cats/myingres.sc @@ -36,13 +36,13 @@ short INGgetCols(const char *stmt) strncpy(stmtd,stmt,strlen(stmt)+1); EXEC SQL PREPARE s1 from :stmtd; - if (INGcheck() < 0 ) { + if (INGcheck() < 0) { free(stmtd); free(sqlda); return -1; } EXEC SQL DESCRIBE s1 into :sqlda; - if (INGcheck() < 0 ) { + if (INGcheck() < 0) { free(stmtd); free(sqlda); return -1; @@ -172,7 +172,7 @@ void INGfreeINGresult(INGresult *ing_res) /* * Free all rows and fields, then res, not descriptor! */ - if (ing_res != NULL ) { + if (ing_res != NULL) { /* * Use of rows is a nasty workaround til I find the reason, * why aggregates like max() don't work @@ -271,7 +271,7 @@ void INGfreeRowSpace(ING_ROW *row, IISQLDA *sqlda) return; } - for (i = 0; i < sqlda->sqld; ++i ) { + for (i = 0; i < sqlda->sqld; ++i) { free(row->sqlvar[i].sqldata); free(row->sqlvar[i].sqlind); } @@ -384,7 +384,7 @@ int INGnfields(const INGresult *res) char *INGfname(const INGresult *res, int column_number) { - if ( (column_number > res->num_fields) || (column_number < 0) ) { + if ((column_number > res->num_fields) || (column_number < 0)) { return NULL; } else { return res->fields[column_number].name; @@ -474,7 +474,7 @@ INGconn *INGconnectDB(char *dbname, char *user, char *passwd) if (user != NULL) { strcpy(ingdbuser,user); - if ( passwd != NULL) { + if (passwd != NULL) { strcpy(ingdbpasw,passwd); } else { strcpy(ingdbpasw, "");