[riot-commits] [RIOT-OS/RIOT] 2ddd8c: net/nanocoap: define coap_data_ptr

Ken Bannister kb2ma at runbox.com
Mon Nov 5 11:10:48 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 2ddd8ce1a9e9a419bf80c5a1670a6640dd10c568
      https://github.com/RIOT-OS/RIOT/commit/2ddd8ce1a9e9a419bf80c5a1670a6640dd10c568
  Author: Lasse Lueder <lasse.lueder at lueder-mail.de>
  Date:   2018-11-02 (Fri, 02 Nov 2018)

  Changed paths:
    M sys/include/net/nanocoap.h

  Log Message:
  -----------
  net/nanocoap: define coap_data_ptr


  Commit: 18ae8ef90ddf3ce1c70de06225c00de9b62b810d
      https://github.com/RIOT-OS/RIOT/commit/18ae8ef90ddf3ce1c70de06225c00de9b62b810d
  Author: Lasse Lueder <lasse.lueder at lueder-mail.de>
  Date:   2018-11-02 (Fri, 02 Nov 2018)

  Changed paths:
    M sys/net/application_layer/nanocoap/nanocoap.c

  Log Message:
  -----------
  net/nanocoap: use coap_data_ptr instead of hdr.data


  Commit: 34a6e384c2dafe8e57b83236d4d96e8b0e4c27c9
      https://github.com/RIOT-OS/RIOT/commit/34a6e384c2dafe8e57b83236d4d96e8b0e4c27c9
  Author: Lasse Lueder <lasse.lueder at lueder-mail.de>
  Date:   2018-11-02 (Fri, 02 Nov 2018)

  Changed paths:
    M sys/net/application_layer/gcoap/gcoap.c

  Log Message:
  -----------
  net/gcoap: use coap_data_ptr instead of hdr.data


  Commit: 885544b4b0e996149585e34d103754adc80bdcb5
      https://github.com/RIOT-OS/RIOT/commit/885544b4b0e996149585e34d103754adc80bdcb5
  Author: Lasse Lueder <lasse.lueder at lueder-mail.de>
  Date:   2018-11-02 (Fri, 02 Nov 2018)

  Changed paths:
    M sys/include/net/nanocoap.h

  Log Message:
  -----------
  net/nanocoap: remove convenience ptr in coap_hdr_t

Empty array uint8_t data[] is not allowed in ISO-C++. Replacement: function coap_hdr_data_ptr, which handles
the pointer arithmetic to point where hdr.data pointed


  Commit: bcd3e311a47013205c5b9548532eab9f3d2aa8cd
      https://github.com/RIOT-OS/RIOT/commit/bcd3e311a47013205c5b9548532eab9f3d2aa8cd
  Author: Ken Bannister <kb2ma at runbox.com>
  Date:   2018-11-05 (Mon, 05 Nov 2018)

  Changed paths:
    M sys/include/net/nanocoap.h
    M sys/net/application_layer/gcoap/gcoap.c
    M sys/net/application_layer/nanocoap/nanocoap.c

  Log Message:
  -----------
  Merge pull request #10248 from llueder/coap/data_ptr

net/nanocoap: make data pointer c++ compliant


Compare: https://github.com/RIOT-OS/RIOT/compare/8130874a1acc...bcd3e311a470
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the commits mailing list