gnokii-users
[Top][All Lists]
Advanced

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

Re: smsd problem with AT model - Part II


From: Pawel Kot
Subject: Re: smsd problem with AT model - Part II
Date: Thu, 5 Oct 2006 21:26:56 +0200

Hi,

On 10/5/06, Daniele Forsi <address@hidden> wrote:
[...]

Much better, but...

        if (sscanf(buf.line2, "+CPMS: \"%*c%*c\",%d,%*d,\"%*c%*c\",%*d,%*d,
\"%c%c\",%*d,%*d",
                   &data->sms_status->number, &store[0], &store[1]) != 3)
-               return GN_ERR_FAILED;
+               if (sscanf(buf.line2, "+CPMS: \"%c%c\",%d,%*d,\"%*c%*c\",%*d,
%*d",
+                  &store[0], &store[1], &data->sms_status->number) != 3)
+                       return GN_ERR_FAILED;

... we don't need to store memory type anymore. So we would need just:
if (sscanf(buf.line2, "+CPMS: \"%*c%*c\",%d,%*d",
&data->sms_status->number) != 1) return GN_ERR_FAILED;
Additionally no need for store[] variable. I will try to prepare the patch.

take care,
pkot
--
Pawel Kot




reply via email to

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