[BACK]Return to showmount.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / showmount

Diff for /src/usr.bin/showmount/showmount.c between version 1.12 and 1.13

version 1.12, 2003/06/03 02:56:16 version 1.13, 2003/06/10 22:20:51
Line 105 
Line 105 
  * for detailed information on the protocol.   * for detailed information on the protocol.
  */   */
 int  int
 main(argc, argv)  main(int argc, char *argv[])
         int argc;  
         char **argv;  
 {  {
         struct exportslist *exp;          struct exportslist *exp;
         struct grouplist *grp;          struct grouplist *grp;
Line 241 
Line 239 
  * Xdr routine for retrieving the mount dump list   * Xdr routine for retrieving the mount dump list
  */   */
 int  int
 xdr_mntdump(xdrsp, mlp)  xdr_mntdump(XDR *xdrsp, struct mountlist **mlp)
         XDR *xdrsp;  
         struct mountlist **mlp;  
 {  {
         struct mountlist *mp, **otp = NULL, *tp;          struct mountlist *mp, **otp = NULL, *tp;
         int bool, val, val2;          int bool, val, val2;
Line 320 
Line 316 
  * Xdr routine to retrieve exports list   * Xdr routine to retrieve exports list
  */   */
 int  int
 xdr_exports(xdrsp, exp)  xdr_exports(XDR *xdrsp, struct exportslist **exp)
         XDR *xdrsp;  
         struct exportslist **exp;  
 {  {
         struct exportslist *ep;          struct exportslist *ep;
         struct grouplist *gp;          struct grouplist *gp;
Line 364 
Line 358 
 }  }
   
 void  void
 usage()  usage(void)
 {  {
   
         fprintf(stderr, "usage: showmount [-ade3] host\n");          fprintf(stderr, "usage: showmount [-ade3] host\n");
Line 375 
Line 369 
  * Print the binary tree in inorder so that output is sorted.   * Print the binary tree in inorder so that output is sorted.
  */   */
 void  void
 print_dump(mp)  print_dump(struct mountlist *mp)
         struct mountlist *mp;  
 {  {
         char    vn[(RPCMNT_NAMELEN+1)*4];          char    vn[(RPCMNT_NAMELEN+1)*4];
         char    vp[(RPCMNT_PATHLEN+1)*4];          char    vp[(RPCMNT_PATHLEN+1)*4];

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13