mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 7.4.1061
Problem: Compiler warning for ignoring return value of fwrite(). Solution: Do use the return value. (idea: Charles Campbell)
This commit is contained in:
@@ -6300,8 +6300,9 @@ put_bytes(fd, nr, len)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Write time_t to file "fd" in 8 bytes.
|
* Write time_t to file "fd" in 8 bytes.
|
||||||
|
* Returns FAIL when the write failed.
|
||||||
*/
|
*/
|
||||||
void
|
int
|
||||||
put_time(fd, the_time)
|
put_time(fd, the_time)
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
time_t the_time;
|
time_t the_time;
|
||||||
@@ -6309,7 +6310,7 @@ put_time(fd, the_time)
|
|||||||
char_u buf[8];
|
char_u buf[8];
|
||||||
|
|
||||||
time_to_bytes(the_time, buf);
|
time_to_bytes(the_time, buf);
|
||||||
(void)fwrite(buf, (size_t)8, (size_t)1, fd);
|
return fwrite(buf, (size_t)8, (size_t)1, fd) == 1 ? OK : FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -105,7 +105,7 @@ int get4c __ARGS((FILE *fd));
|
|||||||
time_t get8ctime __ARGS((FILE *fd));
|
time_t get8ctime __ARGS((FILE *fd));
|
||||||
char_u *read_string __ARGS((FILE *fd, int cnt));
|
char_u *read_string __ARGS((FILE *fd, int cnt));
|
||||||
int put_bytes __ARGS((FILE *fd, long_u nr, int len));
|
int put_bytes __ARGS((FILE *fd, long_u nr, int len));
|
||||||
void put_time __ARGS((FILE *fd, time_t the_time));
|
int put_time __ARGS((FILE *fd, time_t the_time));
|
||||||
void time_to_bytes __ARGS((time_t the_time, char_u *buf));
|
void time_to_bytes __ARGS((time_t the_time, char_u *buf));
|
||||||
int has_non_ascii __ARGS((char_u *s));
|
int has_non_ascii __ARGS((char_u *s));
|
||||||
void parse_queued_messages __ARGS((void));
|
void parse_queued_messages __ARGS((void));
|
||||||
|
@@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1061,
|
||||||
/**/
|
/**/
|
||||||
1060,
|
1060,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user