gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Opensync-users] [PATCH] Delete message when write fails


From: Pawel Kot
Subject: Re: [Opensync-users] [PATCH] Delete message when write fails
Date: Mon, 9 Jul 2007 19:35:27 +0200

Hi,

On 7/9/07, Keith Packard <address@hidden> wrote:
@@ -2468,7 +2469,11 @@ static gn_error NK6510_WritePhonebookLocation(gn_data > 
-       SEND_MESSAGE_BLOCK(NK6510_MSG_PHONEBOOK, count);
+       if (sm_message_send (count, NK6510_MSG_PHONEBOOK, req, state)) return 
GN_ERR_NOTREADY;
+       error = sm_block (NK6510_MSG_PHONEBOOK, data, state);
+       if (error)
+               (void) NK6510_DeletePhonebookLocation(data, state);
+       return error;

I'm not sure why you need this. Did you have a case when write failed
but wrote the entry? Please show the log. The above may cause a
problem when overwriting existing entries.

take care,
pkot
--
Pawel Kot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]