moved some code out to utils.c
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 6 Jun 2005 17:37:21 +0000 (17:37 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 6 Jun 2005 17:37:21 +0000 (17:37 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@323 9efc2488-bf62-4759-914b-345cdb29e865

src/libtransport/generic_utils.c

index 6183954..e5092e2 100644 (file)
@@ -17,6 +17,7 @@ void get_timestamp( char buf_36chars[]) {
        free(localtime);
 }
 
+/*
 double get_timestamp_millis() {
        struct timeb t;
        ftime(&t);
@@ -32,10 +33,7 @@ inline void* safe_malloc( int size ) {
        memset( ptr, 0, size );
        return ptr;
 }
-
-// ---------------------------------------------------------------------------------
-// Here we define how we want to handle various error levels.
-// ---------------------------------------------------------------------------------
+*/
 
 
 static FILE* log_file = NULL;
@@ -208,10 +206,7 @@ int log_init( int llevel, char* lfile ) {
 }
 
 
-// ---------------------------------------------------------------------------------
-// Flesh out a ubiqitous growing string buffer
-// ---------------------------------------------------------------------------------
-
+/*
 growing_buffer* buffer_init(int num_initial_bytes) {
 
        if( num_initial_bytes > BUFFER_MAX_SIZE ) {
@@ -223,7 +218,7 @@ growing_buffer* buffer_init(int num_initial_bytes) {
 
        growing_buffer* gb = (growing_buffer*) safe_malloc(len);
 
-       gb->n_used = 0;/* nothing stored so far */
+       gb->n_used = 0;
        gb->size = num_initial_bytes;
        gb->buf = (char *) safe_malloc(gb->size + 1);
 
@@ -280,6 +275,7 @@ int buffer_free( growing_buffer* gb ) {
 char* buffer_data( growing_buffer *gb) {
        return strdup( gb->buf );
 }
+*/