summaryrefslogtreecommitdiff
path: root/src/output.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2018-07-01 20:00:53 -0400
committerPaul Smith <psmith@gnu.org>2018-07-02 07:54:07 -0400
commit0ce880e5ee7b4c5670aa676354ae10df448a616d (patch)
treef913a93e074330a463a49da3c3bcf9d9a57bf6b2 /src/output.c
parentc808f10d0886cd4f7a8e88a2edd025a091f188a5 (diff)
downloadmake-git-0ce880e5ee7b4c5670aa676354ae10df448a616d.tar.gz
Resolve most of the Windows Visual Studio warnings.
* Convert integer types to size_t where necessary. * Align other integral types to avoid casts and type warnings.
Diffstat (limited to 'src/output.c')
-rw-r--r--src/output.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/output.c b/src/output.c
index b237a31e..8557de27 100644
--- a/src/output.c
+++ b/src/output.c
@@ -86,7 +86,7 @@ _outputs (struct output *out, int is_err, const char *msg)
else
{
int fd = is_err ? out->err : out->out;
- int len = strlen (msg);
+ size_t len = strlen (msg);
int r;
EINTRLOOP (r, lseek (fd, 0, SEEK_END));
output_write (fd, msg, len);
@@ -100,8 +100,8 @@ static int
log_working_directory (int entering)
{
static char *buf = NULL;
- static unsigned int len = 0;
- unsigned int need;
+ static size_t len = 0;
+ size_t need;
const char *fmt;
char *p;