[BACK]Return to sftp-common.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sftp-common.c between version 1.2 and 1.3

version 1.2, 2001/02/06 23:50:10 version 1.3, 2001/06/26 17:27:24
Line 35 
Line 35 
 #include "sftp.h"  #include "sftp.h"
 #include "sftp-common.h"  #include "sftp-common.h"
   
   /* Clear contents of attributes structure */
 void  void
 attrib_clear(Attrib *a)  attrib_clear(Attrib *a)
 {  {
Line 47 
Line 48 
         a->mtime = 0;          a->mtime = 0;
 }  }
   
   /* Convert from struct stat to filexfer attribs */
 void  void
 stat_to_attrib(struct stat *st, Attrib *a)  stat_to_attrib(struct stat *st, Attrib *a)
 {  {
Line 64 
Line 66 
         a->mtime = st->st_mtime;          a->mtime = st->st_mtime;
 }  }
   
   /* Decode attributes in buffer */
 Attrib *  Attrib *
 decode_attrib(Buffer *b)  decode_attrib(Buffer *b)
 {  {
Line 98 
Line 101 
         return &a;          return &a;
 }  }
   
   /* Encode attributes to buffer */
 void  void
 encode_attrib(Buffer *b, Attrib *a)  encode_attrib(Buffer *b, Attrib *a)
 {  {
Line 116 
Line 120 
         }          }
 }  }
   
   /* Convert from SSH2_FX_ status to text error message */
 const char *  const char *
 fx2txt(int status)  fx2txt(int status)
 {  {
Line 143 
Line 148 
         };          };
         /* NOTREACHED */          /* NOTREACHED */
 }  }
   

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3