[libsmpp34] 06/06: Added patch to fix typo. Standards version is 3.9.6

Ruben Undheim rubund-guest at moszumanska.debian.org
Fri Feb 5 14:09:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository libsmpp34.

commit 58ace0fff70a8fdcd71e481b3d6f0c68290ebb9a
Author: Ruben Undheim <ruben.undheim at gmail.com>
Date:   Fri Feb 5 15:07:50 2016 +0100

    Added patch to fix typo. Standards version is 3.9.6
---
 debian/control                  |   2 +-
 debian/patches/fixed_typo.patch | 182 ++++++++++++++++++++++++++++++++++++++++
 debian/patches/series           |   1 +
 3 files changed, 184 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index b87ae3d..7e8948f 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Priority: optional
 Build-Depends: debhelper (>= 9),
                dh-autoreconf,
                pkg-config
-Standards-Version: 3.9.7
+Standards-Version: 3.9.6
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/libsmpp34.git
 Vcs-Git: https://anonscm.debian.org/cgit/debian-science/packages/libsmpp34.git
 Homepage: http://c-open-smpp-34.sourceforge.net/
diff --git a/debian/patches/fixed_typo.patch b/debian/patches/fixed_typo.patch
new file mode 100644
index 0000000..38b3692
--- /dev/null
+++ b/debian/patches/fixed_typo.patch
@@ -0,0 +1,182 @@
+Description:  Just fixing a typo in some text output to prevent a lintian.
+Author: Ruben Undheim <ruben.undheim at gmail.com>
+
+--- libsmpp34-1.10.orig/src/smpp34_dumpPdu.c
++++ libsmpp34-1.10/src/smpp34_dumpPdu.c
+@@ -70,7 +70,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
+                                                     #par,inst par,dummy_b);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%08X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     snprintf((char*)dest, left, "%s", l_dest);\
+@@ -88,7 +88,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
+                                "%-30s[%04X] [%s]\n",#par,inst par,dummy_b);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%04X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     snprintf((char*)dest, left, "%s", l_dest);\
+@@ -106,7 +106,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
+                                                       #par,inst par, dummy_b);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%02X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     snprintf((char*)dest, left, "%s", l_dest);\
+@@ -118,7 +118,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
+                                                            #par, inst par);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%s(%s)]", par, inst par, \
+-                                     "Value lenght exceed buffer lenght");\
++                                     "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     PUTLOG("[%s:%s(%s)]", par, inst par, "OK");\
+@@ -145,7 +145,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
+     lenval = *((inst par) - 1);\
+     if( (lenval + 33) >= left ){\
+         PUTLOG("[%s:%s(%s)]", par, inst par, \
+-                                     "Value lenght exceed buffer lenght");\
++                                     "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     PUTLOG("[%s:%s(%s)]", par, "<bin>", "OK");\
+@@ -172,7 +172,7 @@ smpp34_dumpPdu(uint32_t type, uint8_t *d
+     memcpy(&l_lenval, ((inst par) - sizeof(uint16_t)), sizeof(uint16_t));\
+     if( (l_lenval + 33) >= left ){\
+         PUTLOG("[%s:%s(%s)]", par, inst par, \
+-                                     "Value lenght exceed buffer lenght");\
++                                     "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     PUTLOG("[%s:%s(%s)]", par, "<bin>", "OK");\
+--- libsmpp34-1.10.orig/src/smpp34_pack.c
++++ libsmpp34-1.10/src/smpp34_pack.c
+@@ -65,7 +65,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
+     lenval = sizeof(uint32_t);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%08X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     _str(inst par,dummy_b);\
+@@ -83,7 +83,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
+     lenval = sizeof(uint16_t);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%04X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     _str(inst par,dummy_b);\
+@@ -100,7 +100,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
+     lenval = sizeof(uint8_t);\
+     if( lenval >= left ){\
+         PUTLOG("[%s:%02X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     _str(inst par,dummy_b);\
+@@ -125,7 +125,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
+     lenval = strlen((char*)inst par) + 1;\
+     if( lenval > left ){\
+         PUTLOG("[len(%s):%d(%s)]", par, lenval, \
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     if( lenval > sizeval ){\
+@@ -145,7 +145,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
+     lenval = *((inst par) - 1);\
+     if( lenval >= left ){\
+         PUTLOG("[leng %s:%d(%s)]", par, lenval,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     if( lenval >= sizeval ){\
+@@ -164,7 +164,7 @@ smpp34_pack(uint32_t type, uint8_t *ptrB
+     memcpy(&l_lenval, ((inst par) - sizeof(uint16_t)), sizeof(uint16_t));\
+     if( l_lenval >= left ){\
+         PUTLOG("[leng %s:%d(%s)]", par, l_lenval,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     if( l_lenval > sizeval ){\
+--- libsmpp34-1.10.orig/src/smpp34_unpack.c
++++ libsmpp34-1.10/src/smpp34_unpack.c
+@@ -62,7 +62,7 @@ smpp34_unpack(uint32_t type, void* tt, u
+     lenval = sizeof( uint32_t );\
+     if( lenval > left ){\
+         PUTLOG("[%s:%08X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     memcpy(&inst par, aux, lenval);\
+@@ -80,7 +80,7 @@ smpp34_unpack(uint32_t type, void* tt, u
+     lenval = sizeof( uint16_t );\
+     if( lenval > left ){\
+         PUTLOG("[%s:%04X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     }\
+     memcpy(&inst par, aux, lenval);\
+@@ -98,7 +98,7 @@ smpp34_unpack(uint32_t type, void* tt, u
+     lenval = sizeof( uint8_t );\
+     if( lenval > left ){\
+         PUTLOG("[%s:%02X(%s)]", par, inst par,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     memcpy(&inst par, aux, lenval);\
+@@ -131,7 +131,7 @@ smpp34_unpack(uint32_t type, void* tt, u
+     lenval = strlen( (char*) aux ) + 1;\
+     if( lenval > left ){\
+         PUTLOG("[len(%s):%d(%s)]", par, lenval, \
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     if( lenval > size ){\
+@@ -149,7 +149,7 @@ smpp34_unpack(uint32_t type, void* tt, u
+     lenval = *((inst par) - 1);\
+     if( lenval > left ){\
+         PUTLOG("[leng %s:%d(%s)]", par, lenval,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     if( lenval > size ){\
+@@ -167,7 +167,7 @@ smpp34_unpack(uint32_t type, void* tt, u
+     memcpy(&l_lenval, (inst par - sizeof(uint16_t)), sizeof(uint16_t));\
+     if( l_lenval > left ){\
+         PUTLOG("[leng %s:%d(%s)]", par, l_lenval,\
+-                                      "Value lenght exceed buffer lenght");\
++                                      "Value length exceed buffer length");\
+         return( -1 );\
+     };\
+     if( l_lenval > size ){\
+--- libsmpp34-1.10.orig/test_apps/recv_and_unpack.inc
++++ libsmpp34-1.10/test_apps/recv_and_unpack.inc
+@@ -3,7 +3,7 @@
+     /* Read from socket (This is a sample, must be more complex) **********/
+     ret = recv(sock_tcp, local_buffer, 4, MSG_PEEK); 
+     if( ret != 4 ){ printf("Error in recv(PEEK)\n");return( -1 );};
+-    memcpy(&tempo, local_buffer, sizeof(uint32_t)); /* get lenght PDU */
++    memcpy(&tempo, local_buffer, sizeof(uint32_t)); /* get length PDU */
+     local_buffer_len = ntohl( tempo );
+     ret = recv(sock_tcp, local_buffer, local_buffer_len, 0); 
+     if( ret != local_buffer_len ){ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e9b75c5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fixed_typo.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libsmpp34.git



More information about the debian-science-commits mailing list