[mapserver-commits] [mapserver/mapserver] c69d11: const-correctness

GitHub noreply at github.com
Thu Mar 27 08:48:49 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/mapserver/mapserver
  Commit: c69d113b21f26b5d45cf40e672c3bf1a71507f7f
      https://github.com/mapserver/mapserver/commit/c69d113b21f26b5d45cf40e672c3bf1a71507f7f
  Author: Max Kellermann <max at duempel.org>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M mapbits.c
    M mapsearch.c
    M mapserver.h
    M mapshape.c
    M mapshape.h
    M maptree.c
    M maptree.h
    M mapxbase.c

  Log Message:
  -----------
  const-correctness

Add "const" to a bunch of pointers that are not written to.


  Commit: e15185413bfbda57efbbb2033932a7c0b6bddcdb
      https://github.com/mapserver/mapserver/commit/e15185413bfbda57efbbb2033932a7c0b6bddcdb
  Author: Max Kellermann <max at duempel.org>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M mapxbase.c

  Log Message:
  -----------
  mapxbase: make DBFIsValueNULL() static

It's an internal function.


  Commit: 3e2964ccfaa00489112992616f7efe091b0046f2
      https://github.com/mapserver/mapserver/commit/3e2964ccfaa00489112992616f7efe091b0046f2
  Author: Max Kellermann <max at duempel.org>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M mapshape.c
    M mapxbase.c

  Log Message:
  -----------
  simplify SfRealloc()

realloc(NULL,size) is equivalent to malloc(size).  No need for this
runtime check.


  Commit: 9b4b819cf3a6b2f4923828f83477d5ffd87f540e
      https://github.com/mapserver/mapserver/commit/9b4b819cf3a6b2f4923828f83477d5ffd87f540e
  Author: Max Kellermann <max at duempel.org>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M mapshape.c
    M mapxbase.c

  Log Message:
  -----------
  remove NULL checks before free()

free(NULL) is legal (no-op).


  Commit: 079f8161c35f1c98675a5d2ac9349380798678e0
      https://github.com/mapserver/mapserver/commit/079f8161c35f1c98675a5d2ac9349380798678e0
  Author: Max Kellermann <max at duempel.org>
  Date:   2014-03-27 (Thu, 27 Mar 2014)

  Changed paths:
    M mapfile.c

  Log Message:
  -----------
  mapfile.c: don't redefine _GNU_SOURCE

Avoids compiler warning.


Compare: https://github.com/mapserver/mapserver/compare/77313de827e8...079f8161c35f


More information about the mapserver-commits mailing list