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

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

version 1.12, 2005/05/25 06:02:00 version 1.13, 2005/05/25 06:22:08
Line 33 
Line 33 
 #include <string.h>  #include <string.h>
   
 #include "cvs.h"  #include "cvs.h"
   #include "log.h"
 #include "proto.h"  #include "proto.h"
 #include "log.h"  #include "log.h"
   
 static int cvs_version_sendflags  (struct cvsroot *);  static int cvs_version_init     (struct cvs_cmd *, int, char **, int *);
   static int cvs_version_pre_exec (struct cvsroot *);
   
 struct cvs_cmd cvs_cmd_version = {  struct cvs_cmd cvs_cmd_version = {
         CVS_OP_VERSION, CVS_REQ_VERSION, "version",          CVS_OP_VERSION, CVS_REQ_VERSION, "version",
Line 46 
Line 48 
         "",          "",
         NULL,          NULL,
         0,          0,
           cvs_version_init,
           cvs_version_pre_exec,
         NULL,          NULL,
         cvs_version_sendflags,  
         NULL,          NULL,
         NULL,          NULL,
         NULL,          NULL,
         NULL,  
         0          0
 };  };
   
   
 static int  static int
 cvs_version_sendflags(struct cvsroot *root)  cvs_version_init(struct cvs_cmd *cmd, int argc, char **argv, int *arg)
   {
           *arg = 1;
           return (0);
   }
   
   static int
   cvs_version_pre_exec(struct cvsroot *root)
 {  {
         if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL))          if ((root != NULL) && (root->cr_method != CVS_METHOD_LOCAL))
                 printf("Client: ");                  printf("Client: ");

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