aboutsummaryrefslogtreecommitdiff
path: root/src/pj_fileapi.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2015-06-28 18:29:23 +0200
committerEven Rouault <even.rouault@spatialys.com>2015-06-28 18:29:23 +0200
commit02232fd5fe58783a40a8cf124170d9ad4629b1ce (patch)
treed2bfb849bd3ad4d952bc8e5db0e859b8cef8d0d7 /src/pj_fileapi.c
parentf89810c45ab97baf2847855eb6cd57619a806279 (diff)
parent6073f5f3d33d401a7140611b8f3570caf5d17a3b (diff)
downloadPROJ-02232fd5fe58783a40a8cf124170d9ad4629b1ce.tar.gz
PROJ-02232fd5fe58783a40a8cf124170d9ad4629b1ce.zip
Merge branch '4-warning-fixes' of github.com:QuLogic/proj.4
Diffstat (limited to 'src/pj_fileapi.c')
-rw-r--r--src/pj_fileapi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/pj_fileapi.c b/src/pj_fileapi.c
index c0b33693..fa35f30a 100644
--- a/src/pj_fileapi.c
+++ b/src/pj_fileapi.c
@@ -1,6 +1,4 @@
/******************************************************************************
- * $Id$
- *
* Project: PROJ.4
* Purpose: Implementation of the pj_ctx_* file api, and the default stdio
* based implementation.
@@ -31,8 +29,6 @@
#include <projects.h>
#include <string.h>
-PJ_CVSID("$Id$");
-
static PAFile pj_stdio_fopen(projCtx ctx, const char *filename,
const char *access);
static size_t pj_stdio_fread(void *buffer, size_t size, size_t nmemb,
@@ -185,7 +181,7 @@ char *pj_ctx_fgets(projCtx ctx, char *line, int size, PAFile file)
bytes_read = pj_ctx_fread(ctx, line, 1, size-1, file);
if(bytes_read == 0)
return NULL;
- if(bytes_read < size)
+ if(bytes_read < (size_t)size)
{
line[bytes_read] = '\0';
}