(file) Return to set_history.c CVS log (file) (dir) Up to [Development] / JSOC / proj / globalhs / apps

Diff for /JSOC/proj/globalhs/apps/set_history.c between version 1.2 and 1.3

version 1.2, 2012/05/09 03:43:12 version 1.3, 2013/04/28 07:59:17
Line 1 
Line 1 
 #include <unistd.h> #include <unistd.h>
   #ifndef CVSTAG
   #define CVSTAG "undefined"
   #endif
  
 long long set_history(DRMS_Link_t *histlink, char *cvsinfo)  char *cvsinfo_set_history = "cvsinfo: $Header$";
   
   long long set_history(DRMS_Link_t *histlink)
 { {
   int status=0;   int status=0;
   int len;   int len;
Line 48  long long set_history(DRMS_Link_t *histl
Line 53  long long set_history(DRMS_Link_t *histl
     drms_close_record(histrec, DRMS_FREE_RECORD);     drms_close_record(histrec, DRMS_FREE_RECORD);
     return -1;     return -1;
   }   }
   status = drms_setkey_string(histrec, "HEADER", cvsinfo);    status = drms_setkey_string(histrec, "CVSTAG", CVSTAG);
   if (status != DRMS_SUCCESS)   if (status != DRMS_SUCCESS)
   {   {
     fprintf(stderr,"ERROR: problem writing keyword HEADER in history dataseries, status = %d\n", status);      fprintf(stderr,"ERROR: problem writing keyword CVSTAG in history dataseries, status = %d\n", status);
     drms_close_record(histrec, DRMS_FREE_RECORD);     drms_close_record(histrec, DRMS_FREE_RECORD);
     return -1;     return -1;
   }   }


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

Karen Tian
Powered by
ViewCVS 0.9.4