Skip to content

Commit 5bb2ddc

Browse files
committed
entab: Fix some compiler warnings
1 parent 991f3e5 commit 5bb2ddc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/tools/entab/entab.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <stdlib.h>
1515
#include <string.h>
1616
#include <stdarg.h>
17+
#include <unistd.h>
1718

1819
#if defined(WIN32) || defined(__CYGWIN__)
1920
#define PG_BINARY_R "rb"
@@ -181,10 +182,12 @@ main(int argc, char **argv)
181182
if (*src == '\\')
182183
escaped = TRUE;
183184
if (*src == '"' || *src == '\'')
185+
{
184186
if (quote_char == ' ')
185187
quote_char = *src;
186188
else if (*src == quote_char)
187189
quote_char = ' ';
190+
}
188191
}
189192
else if (*src != '\r' && *src != '\n')
190193
escaped = FALSE;

src/tools/entab/halt.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <signal.h>
1212
#include <stdio.h>
1313
#include <stdlib.h>
14+
#include <string.h>
1415
#include <errno.h>
1516

1617

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy