fixed printf format warnings from GNU

This commit is contained in:
Jeff Hill
2000-06-13 00:57:53 +00:00
parent 07bcb7a55d
commit 18b38cb969

View File

@@ -79,6 +79,7 @@ char *pvalue
else{
return cagft(pname);
}
ca_task_exit();
}
@@ -110,7 +111,7 @@ LOCAL int cagft(char *pname)
printf("name:\t%s\n", ca_name(chan_id));
printf("native type:\t%d\n", ca_field_type(chan_id));
printf("native count:\t%u\n", ca_element_count(chan_id));
printf("native count:\t%lu\n", ca_element_count(chan_id));
/*
@@ -220,7 +221,7 @@ char *pvalue
printf("name:\t%s\n", ca_name(chan_id));
printf("native type:\t%d\n", ca_field_type(chan_id));
printf("native count:\t%u\n", ca_element_count(chan_id));
printf("native count:\t%lu\n", ca_element_count(chan_id));
/*
* string value ca_put
@@ -356,10 +357,10 @@ LOCAL void tsStampToText(char * text, const TS_STAMP *pstamp)
status = tsStampToTM(&tmstruct,&nsec,pstamp);
if(status) {
sprintf(text,"illegal time stamp\0");
sprintf(text,"illegal time stamp\n");
return;
}
sprintf(nsectext,".%09ul",nsec);
sprintf(nsectext,".%09lu",nsec);
if((nsec%1000000)*1000000 == nsec) nsectext[4] = 0;
else if((nsec%1000)*1000 == nsec) nsectext[7] = 0;
else nsectext[10] = 0;