diff options
| author | Bruce Momjian | 1997-09-08 02:41:22 +0000 |
|---|---|---|
| committer | Bruce Momjian | 1997-09-08 02:41:22 +0000 |
| commit | 319dbfa7364721d3343af03a7ce063c2a2c9d385 (patch) | |
| tree | a2146fe02c49ce1e497b7c287dfcaa367a703ae4 /src/utils | |
| parent | a90f12fd9d6886da4f0734288496361a304d3882 (diff) | |
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/strdup.c | 6 | ||||
| -rw-r--r-- | src/utils/version.c | 16 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/utils/strdup.c b/src/utils/strdup.c index 762e2365c7..1330b97712 100644 --- a/src/utils/strdup.c +++ b/src/utils/strdup.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/utils/Attic/strdup.c,v 1.3 1997/09/07 05:04:45 momjian Exp $ + * $Header: /cvsroot/pgsql/src/utils/Attic/strdup.c,v 1.4 1997/09/08 02:41:21 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -15,10 +15,10 @@ #include <stdlib.h> #include "strdup.h" -char * +char * strdup(char const * string) { - char *nstr; + char *nstr; nstr = strcpy((char *) malloc(strlen(string) + 1), string); return nstr; diff --git a/src/utils/version.c b/src/utils/version.c index 9d7c75556b..193668b68c 100644 --- a/src/utils/version.c +++ b/src/utils/version.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/utils/Attic/version.c,v 1.7 1997/09/07 05:04:48 momjian Exp $ + * $Header: /cvsroot/pgsql/src/utils/Attic/version.c,v 1.8 1997/09/08 02:41:22 momjian Exp $ * * NOTES * XXX eventually, should be able to handle version identifiers @@ -62,9 +62,9 @@ ValidatePgVersion(const char *path, char **reason_p) fill it with a text string explaining how it isn't compatible (or why we can't tell), and return a pointer to that space as <*reason_p>. -----------------------------------------------------------------------------*/ - int fd; - char version[4]; - char full_path[MAXPGPATH + 1]; + int fd; + char version[4]; + char full_path[MAXPGPATH + 1]; PathSetVersionFilePath(path, full_path); @@ -117,9 +117,9 @@ SetPgVersion(const char *path, char **reason_p) and return a pointer to that storage as <*reason_p>. If we succeed, return *reason_p = NULL. ---------------------------------------------------------------------------*/ - int fd; - char version[4]; - char full_path[MAXPGPATH + 1]; + int fd; + char version[4]; + char full_path[MAXPGPATH + 1]; PathSetVersionFilePath(path, full_path); @@ -133,7 +133,7 @@ SetPgVersion(const char *path, char **reason_p) } else { - int rc; /* return code from some function we call */ + int rc; /* return code from some function we call */ version[0] = '0' + PG_RELEASE; version[1] = '.'; |
