Re: [Fwd: [PATCH] Typo in smsc_smpp.c]

Rachman Chavik <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I missed a couple more.  Sorry about this, should have seen it before.

On Mon, 07 Apr 2003 11:32:20 +0200, Stipe Tolj wrote:
>Alexander Malysh wrote:
>>
>>Hi,
>>
>>+1 from me too ...
>
>ok, gonna commit now.
>
>Stipe
smpp_typo2.diff (application/octet-stream, 1.6 KB)
Index: smsc_smpp.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_smpp.c,v
retrieving revision 1.32
diff -u -r1.32 smsc_smpp.c
--- smsc_smpp.c	7 Apr 2003 09:41:30 -0000	1.32
+++ smsc_smpp.c	8 Apr 2003 06:34:14 -0000
@@ -861,20 +861,20 @@
                 warning(0, "SMPP[%s]: SMSC sent submit_sm_resp " 
                         "with wrong sequence number 0x%08lx",
                         octstr_get_cstr(smpp->conn->id),
-                        pdu->u.submit_sm.sequence_number); 
+                        pdu->u.submit_sm_resp.sequence_number); 
             } else if (pdu->u.submit_sm_resp.command_status != 0) { 
                 error(0, "SMPP[%s]: SMSC returned error code 0x%08lx " 
                       "in response to submit_sm.",
                       octstr_get_cstr(smpp->conn->id),
                       pdu->u.submit_sm_resp.command_status); 
                 reason = smpp_status_to_smscconn_failure_reason( 
-                            pdu->u.submit_sm.command_status); 
+                            pdu->u.submit_sm_resp.command_status); 
 
                 /* 
                  * check to see if we got a "throttling error", in which case we'll just
                  * sleep for a while 
                  */
-                if (pdu->u.submit_sm.command_status == SMPP_ESME_RTHROTTLED)
+                if (pdu->u.submit_sm_resp.command_status == SMPP_ESME_RTHROTTLED)
                     time(&(smpp->throttling_err_time));
                 else
                     smpp->throttling_err_time = 0;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.