PPP: Change data argument in sio_write to const

To fix the build after ppp_output_cb started taking it as const in
commit b2d1fc119d.

Fixes this failure:
../contrib/examples/ppp/pppos_example.c: In function ‘ppp_output_cb’:
../contrib/examples/ppp/pppos_example.c:163:29: error: cast discards ‘const’ qualifier from pointer target type [-Werror=cast-qual]
   return sio_write(ppp_sio, (u8_t*)data, len);
                             ^
This commit is contained in:
Erik Ekman
2020-12-03 09:47:00 +01:00
parent d1fc5c2ec4
commit c748395bda
6 changed files with 6 additions and 5 deletions

View File

@@ -123,7 +123,7 @@ u32_t sio_tryread(sio_fd_t fd, u8_t *data, u32_t len);
*
* @note This function will block until all data can be sent.
*/
u32_t sio_write(sio_fd_t fd, u8_t *data, u32_t len);
u32_t sio_write(sio_fd_t fd, const u8_t *data, u32_t len);
#endif
#ifndef sio_read_abort