mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-23 14:46:01 +00:00
SNMP: source of ocstrncpy() and objectidncpy() may be const
Signed-off-by: Freddie Chopin <freddie.chopin@gmail.com>
This commit is contained in:
parent
a15b28a24e
commit
e6202cfa97
|
@ -902,7 +902,7 @@ static u32_t snmpinpkts = 0,
|
||||||
* @param src points to source
|
* @param src points to source
|
||||||
* @param n number of octets to copy.
|
* @param n number of octets to copy.
|
||||||
*/
|
*/
|
||||||
static void ocstrncpy(u8_t *dst, u8_t *src, u16_t n)
|
static void ocstrncpy(u8_t *dst, const u8_t *src, u16_t n)
|
||||||
{
|
{
|
||||||
u16_t i = n;
|
u16_t i = n;
|
||||||
while (i > 0) {
|
while (i > 0) {
|
||||||
|
@ -918,7 +918,7 @@ static void ocstrncpy(u8_t *dst, u8_t *src, u16_t n)
|
||||||
* @param src points to source
|
* @param src points to source
|
||||||
* @param n number of sub identifiers to copy.
|
* @param n number of sub identifiers to copy.
|
||||||
*/
|
*/
|
||||||
void objectidncpy(s32_t *dst, s32_t *src, u8_t n)
|
void objectidncpy(s32_t *dst, const s32_t *src, u8_t n)
|
||||||
{
|
{
|
||||||
u8_t i = n;
|
u8_t i = n;
|
||||||
while(i > 0) {
|
while(i > 0) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user