tt_xdr_utils: fix up some warnings
This commit is contained in:
@@ -67,7 +67,7 @@ static bool_t
|
||||
* The third agrument is also wrong. Both SUN and DEC system header files
|
||||
* expect int instead of u_int.
|
||||
*/
|
||||
#if defined(CSRG_BASED)
|
||||
#if defined(CSRG_BASED) || defined(__linux__)
|
||||
#if defined(OPT_CONST_CORRECT)
|
||||
tt_x_putbytes(XDR *xp, const char *, unsigned int len)
|
||||
#else
|
||||
@@ -83,12 +83,12 @@ tt_x_putbytes(XDR *xp, caddr_t, int len)
|
||||
|
||||
#if defined(ultrix)
|
||||
static int*
|
||||
#elif defined(CSRG_BASED)
|
||||
#elif defined(CSRG_BASED) || defined(__linux__)
|
||||
static int32_t*
|
||||
#else
|
||||
static long *
|
||||
#endif
|
||||
#if defined(CSRG_BASED)
|
||||
#if defined(CSRG_BASED) || defined(__linux__)
|
||||
tt_x_inline(XDR *xp, unsigned int len)
|
||||
#else
|
||||
tt_x_inline(XDR *xp, int len)
|
||||
@@ -106,7 +106,7 @@ tt_x_inline(XDR *xp, int len)
|
||||
xp->x_handy += RNDUP (len);
|
||||
#if defined(ultrix)
|
||||
return (int *) xp->x_private;
|
||||
#elif defined(CSRG_BASED)
|
||||
#elif defined(CSRG_BASED) || defined(__linux__)
|
||||
return (int32_t *) xp->x_private;
|
||||
#else
|
||||
return (long *) xp->x_private;
|
||||
|
||||
Reference in New Issue
Block a user