diff options
author | jbj <devnull@localhost> | 2001-10-17 16:43:36 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2001-10-17 16:43:36 +0000 |
commit | d57a29baac08c4cc929c9755cfbc5c93d56a0f4d (patch) | |
tree | 586ca6c4d0d8c80d4c037d18f15a30c694fbdb54 /rpmio/rpmrpc.c | |
parent | 96a3f7a55d444296f97c3e28c8d810e220e1cb9f (diff) | |
download | librpm-tizen-d57a29baac08c4cc929c9755cfbc5c93d56a0f4d.tar.gz librpm-tizen-d57a29baac08c4cc929c9755cfbc5c93d56a0f4d.tar.bz2 librpm-tizen-d57a29baac08c4cc929c9755cfbc5c93d56a0f4d.zip |
Converging on lclint-3.0.17 strict level.
CVS patchset: 5118
CVS date: 2001/10/17 16:43:36
Diffstat (limited to 'rpmio/rpmrpc.c')
-rw-r--r-- | rpmio/rpmrpc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/rpmio/rpmrpc.c b/rpmio/rpmrpc.c index 2d5fa1901..c2a48059a 100644 --- a/rpmio/rpmrpc.c +++ b/rpmio/rpmrpc.c @@ -524,7 +524,9 @@ static int vfs_parse_filedate(int idx, /*@out@*/ time_t *t) /* Here just this special case with MM-DD-YY */ if (is_dos_date(p)){ + /*@-mods@*/ p[2] = p[5] = '-'; + /*@=mods@*/ memset(d, 0, sizeof(d)); if (sscanf(p, "%2d-%2d-%2d", &d[0], &d[1], &d[2]) == 3){ @@ -808,6 +810,7 @@ static /*@only@*/ char * ftpBuf = NULL; #define alloca_strdup(_s) strcpy(alloca(strlen(_s)+1), (_s)) +/*@-mods@*/ static int ftpNLST(const char * url, ftpSysCall_t ftpSysCall, /*@out@*/ /*@null@*/ struct stat * st, /*@out@*/ /*@null@*/ char * rlbuf, size_t rlbufsiz) @@ -876,7 +879,7 @@ static int ftpNLST(const char * url, ftpSysCall_t ftpSysCall, } if (ftpBufAlloced == 0 || ftpBuf == NULL) { - ftpBufAlloced = url_iobuf_size; + ftpBufAlloced = _url_iobuf_size; ftpBuf = xcalloc(ftpBufAlloced, sizeof(ftpBuf[0])); } *ftpBuf = '\0'; @@ -886,7 +889,7 @@ static int ftpNLST(const char * url, ftpSysCall_t ftpSysCall, do { - /* XXX FIXME: realloc ftpBuf is < ~128 chars remain */ + /* XXX FIXME: realloc ftpBuf if < ~128 chars remain */ if ((ftpBufAlloced - bufLength) < (1024+80)) { ftpBufAlloced <<= 2; ftpBuf = xrealloc(ftpBuf, ftpBufAlloced); @@ -996,6 +999,7 @@ exit: (void) ufdClose(fd); return rc; } +/*@=mods@*/ static int ftpStat(const char * path, /*@out@*/ struct stat *st) /*@globals fileSystem @*/ |