Changeset 1477

Show
Ignore:
Timestamp:
11/24/06 19:47:10 (2 years ago)
Author:
dgollub
Message:

Fixed build for latest devel branch.

Location:
branches/palm-dev/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/palm-dev/src/palm_format.c

    r1266 r1477  
    2222#include "palm_format.h" 
    2323 
    24 #include <opensync/opensync-xml.h> 
     24#include <opensync/opensync_xml.h> 
    2525#include <opensync/opensync-time.h> 
    2626#include <opensync/opensync-format.h> 
  • branches/palm-dev/src/palm_sync.c

    r1266 r1477  
    126126        int ret = dlp_OpenDB(env->socket, 0, dlpOpenReadWrite, name, &(db->handle)); 
    127127        if (_psyncCheckReturn(env->socket, ret, error) != PSYNC_NO_ERROR) { 
    128                 osync_error_update(error, "Unable to open %s: %s", name, osync_error_print(error)); 
     128                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to open %s: %s", name, osync_error_print(error)); 
    129129                goto error_free_db; 
    130130        } 
     
    187187        PSyncError err = _psyncCheckReturn(db->env->socket, ret, error); 
    188188        if (err == PSYNC_ERROR_OTHER) { 
    189                 osync_error_update(error, "Unable to get next entry: %s", osync_error_print(error)); 
     189                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to get next entry: %s", osync_error_print(error)); 
    190190                goto error_free_buffer; 
    191191        } else if (err == PSYNC_ERROR_NOT_FOUND) { 
     
    237237        PSyncError err = _psyncCheckReturn(db->env->socket, ret, error); 
    238238        if (err == PSYNC_ERROR_OTHER) { 
    239                 osync_error_update(error, "Unable to get next entry: %s", osync_error_print(error)); 
     239                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to get next entry: %s", osync_error_print(error)); 
    240240                goto error_free_buffer; 
    241241        } else if (err == PSYNC_ERROR_NOT_FOUND) { 
     
    288288        PSyncError err = _psyncCheckReturn(db->env->socket, ret, error); 
    289289        if (err == PSYNC_ERROR_OTHER) { 
    290                 osync_error_update(error, "Unable to get next entry: %s", osync_error_print(error)); 
     290                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to get next entry: %s", osync_error_print(error)); 
    291291                goto error_free_buffer; 
    292292        } else if (err == PSYNC_ERROR_NOT_FOUND) { 
     
    318318        int ret = dlp_DeleteRecord(db->env->socket, db->handle, 0,  id); 
    319319        if (_psyncCheckReturn(db->env->socket, ret, error) != PSYNC_NO_ERROR) { 
    320                 osync_error_update(error, "Unable to delete file: %s", osync_error_print(error)); 
     320                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to delete file: %s", osync_error_print(error)); 
    321321                goto error; 
    322322        } 
     
    344344#endif 
    345345        if (_psyncCheckReturn(db->env->socket, ret, error) != PSYNC_NO_ERROR) { 
    346                 osync_error_update(error, "Unable to write file: %s", osync_error_print(error)); 
     346                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to write file: %s", osync_error_print(error)); 
    347347                goto error; 
    348348        } 
     
    377377#endif 
    378378        if (_psyncCheckReturn(db->env->socket, ret, error) != PSYNC_NO_ERROR) { 
    379                 osync_error_update(error, "Unable to add file: %s", osync_error_print(error)); 
     379                osync_error_set(error, OSYNC_ERROR_GENERIC, "Unable to add file: %s", osync_error_print(error)); 
    380380                goto error; 
    381381        } 
     
    677677        osync_trace(TRACE_INTERNAL, "test %i", ret); 
    678678        if (_psyncCheckReturn(env->socket, ret, &error) != PSYNC_NO_ERROR) { 
    679                 osync_error_update(&error, "Unable to read UserInfo: %s", osync_error_print(&error)); 
     679                //osync_error_update(&error, "Unable to read UserInfo: %s", osync_error_print(&error)); 
    680680                goto error; 
    681681        }