mirror of
https://repo.or.cz/socat.git
synced 2025-07-10 22:13:00 +00:00
Red Hat issue 1020203: configure checks fail with some compilers
This commit is contained in:
parent
cf39583b25
commit
fbb521e45e
15 changed files with 309 additions and 91 deletions
6
filan.c
6
filan.c
|
@ -1,5 +1,5 @@
|
|||
/* source: filan.c */
|
||||
/* Copyright Gerhard Rieger 2001-2011 */
|
||||
/* Copyright Gerhard Rieger */
|
||||
/* Published under the GNU General Public License V.2, see file COPYING */
|
||||
|
||||
/* the subroutine filan makes a "FILe descriptor ANalysis". It checks the
|
||||
|
@ -264,7 +264,7 @@ int filan_stat(
|
|||
if (filan_rawoutput) {
|
||||
snprintf(stdevstr, 8, F_dev, buf->st_dev);
|
||||
} else {
|
||||
snprintf(stdevstr, 8, "%hu,%hu", (unsigned short)buf->st_dev>>8, (unsigned short)buf->st_dev&0xff);
|
||||
snprintf(stdevstr, 8, "%hu,%hu", (unsigned short)(buf->st_dev>>8), (unsigned short)(buf->st_dev&0xff));
|
||||
}
|
||||
fprintf(outfile, "%4d: %s\t%s\t"
|
||||
#if HAVE_STAT64
|
||||
|
@ -299,7 +299,7 @@ int filan_stat(
|
|||
buf->st_mode, buf->st_nlink, buf->st_uid,
|
||||
buf->st_gid,
|
||||
#if HAVE_ST_RDEV
|
||||
(unsigned short)buf->st_rdev>>8, (unsigned short)buf->st_rdev&0xff,
|
||||
(unsigned short)(buf->st_rdev>>8), (unsigned short)(buf->st_rdev&0xff),
|
||||
#endif
|
||||
buf->st_size
|
||||
#if HAVE_ST_BLKSIZE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue