Changeset: 0fbd9240268d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/0fbd9240268d
Modified Files:
        clients/mapiclient/dotmonetdb.c
Branch: Sep2022
Log Message:

Reindent.


diffs (75 lines):

diff --git a/clients/mapiclient/dotmonetdb.c b/clients/mapiclient/dotmonetdb.c
--- a/clients/mapiclient/dotmonetdb.c
+++ b/clients/mapiclient/dotmonetdb.c
@@ -57,7 +57,7 @@ parse_dotmonetdb(DotMonetdb *dotfile)
                }
        } else if (*cfile != 0 && (config = _wfopen(cfile, L"r")) == NULL) {
                fprintf(stderr, "failed to open file '%ls': %s\n",
-                       cfile, strerror(errno));
+                               cfile, strerror(errno));
        }
 #else
        char *cfile;
@@ -85,7 +85,7 @@ parse_dotmonetdb(DotMonetdb *dotfile)
                }
        } else if (*cfile != 0 && (config = fopen(cfile, "r")) == NULL) {
                fprintf(stderr, "failed to open file '%s': %s\n",
-                       cfile, strerror(errno));
+                               cfile, strerror(errno));
        }
 #endif
 
@@ -103,7 +103,7 @@ parse_dotmonetdb(DotMonetdb *dotfile)
                                continue;
                        if ((q = strchr(buf, '=')) == NULL) {
                                fprintf(stderr, CF ":%d: syntax error: %s\n",
-                                       cfile, line, buf);
+                                               cfile, line, buf);
                                continue;
                        }
                        *q++ = '\0';
@@ -119,16 +119,15 @@ parse_dotmonetdb(DotMonetdb *dotfile)
                        } else if (strcmp(buf, "database") == 0) {
                                dotfile->dbname = strdup(q);
                                q = NULL;
-                        } else if (strcmp(buf, "host") == 0) {
+                       } else if (strcmp(buf, "host") == 0) {
                                dotfile->host = strdup(q);
                                q = NULL;
                        } else if (strcmp(buf, "language") == 0) {
                                /* make sure we don't set garbage */
                                if (strcmp(q, "sql") != 0 &&
                                    strcmp(q, "mal") != 0) {
-                                       fprintf(stderr, CF ":%d: unsupported "
-                                               "language: %s\n",
-                                               cfile, line, q);
+                                       fprintf(stderr, CF ":%d: unsupported 
language: %s\n",
+                                                       cfile, line, q);
                                }
                                dotfile->language = strdup(q);
                                q = NULL;
@@ -138,7 +137,7 @@ parse_dotmonetdb(DotMonetdb *dotfile)
                                        dotfile->save_history = true;
                                        q = NULL;
                                } else if (strcmp(q, "false") == 0 ||
-                                          strcmp(q, "off") == 0) {
+                                                  strcmp(q, "off") == 0) {
                                        dotfile->save_history = false;
                                        q = NULL;
                                }
@@ -148,13 +147,13 @@ parse_dotmonetdb(DotMonetdb *dotfile)
                        } else if (strcmp(buf, "width") == 0) {
                                dotfile->pagewidth = atoi(q);
                                q = NULL;
-                        } else if (strcmp(buf, "port") == 0) {
+                       } else if (strcmp(buf, "port") == 0) {
                                dotfile->port = atoi(q);
                                q = NULL;
                        }
                        if (q != NULL)
                                fprintf(stderr, CF ":%d: unknown property: 
%s\n",
-                                       cfile, line, buf);
+                                               cfile, line, buf);
                }
                fclose(config);
        }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to