Changeset ff0f694d in rtems for cpukit/libnetworking/nfs


Ignore:
Timestamp:
Aug 20, 1998, 9:47:37 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
96b39164
Parents:
50ea4814
Message:

Fixed many warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/nfs/bootp_subr.c

    r50ea4814 rff0f694d  
    7070#include <nfs/xdr_subs.h>
    7171
    72 
    7372#define BOOTP_MIN_LEN           300     /* Minimum size of bootp udp packet */
    7473
     
    107106
    108107/* mountd RPC */
     108#if !defined(__rtems__)
    109109static int md_mount __P((struct sockaddr_in *mdsin, char *path,
    110110        u_char *fhp, int *fhsizep, struct nfs_args *args,struct proc *procp));
     
    114114                               struct proc *procp));
    115115static int setfs __P((struct sockaddr_in *addr, char *path, char *p));
     116#endif
    116117static int getdec __P((char **ptr));
    117118static char *substr __P((char *a,char *b));
     119#if !defined(__rtems__)
    118120static void mountopts __P((struct nfs_args *args, char *p));
    119121static int xdr_opaque_decode __P((struct mbuf **ptr,u_char *buf,
    120122                                  int len));
    121123static int xdr_int_decode __P((struct mbuf **ptr,int *iptr));
     124#endif
    122125static void printip __P((char *prefix,struct in_addr addr));
    123126
     
    261264{
    262265        struct socket *so;
    263         struct sockaddr_in *sin,sa;
     266        struct sockaddr_in *sin;
    264267        struct mbuf *m, *nam;
    265268        struct uio auio;
    266269        struct iovec aio;
    267270        int error, rcvflg, timo, secs, len;
    268         u_int tport;
    269271
    270272        /* Free at end if not null. */
     
    603605}
    604606
     607#if !defined(__rtems__)
    605608static int setfs(addr, path, p)
    606609        struct sockaddr_in *addr;
     
    635638        return(1);
    636639}
     640#endif
    637641
    638642static int getdec(ptr)
     
    691695  int error;
    692696  int code,ncode,len;
    693   int i,j;
     697  int j;
    694698  char *p;
    695699  unsigned int ip;
     
    700704  int gotgw=0;
    701705  int gotnetmask=0;
     706#if !defined(__rtems__)
    702707  int gotrootpath=0;
    703708  int gotswappath=0;
     709#endif
    704710  char lookup_path[24];
    705711
    706712#define EALEN 6
     713#if !defined(__rtems__)
    707714  unsigned char ea[EALEN];
     715#endif
    708716  struct ifaddr *ifa;
    709717  struct sockaddr_dl *sdl = NULL;
Note: See TracChangeset for help on using the changeset viewer.