Make char* parameters const
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Tue, 24 Feb 2009 14:49:21 +0000 (09:49 -0500)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Tue, 24 Feb 2009 14:49:21 +0000 (09:49 -0500)
commit53fea3a7aef481151c3a15d01481cb0f11ae2e8b
tree02cd861740b809bf60531f0241f708339f229337
parent1bfdbb093f7c5e434ea3e653d389e1ccec578af6
Make char* parameters const

- Use const in function signatures whenever appropriate, to help prevent
  errant scribbling on users' buffers. smbc_set_credentials() always acted as
  if its formal parameters were const char *, and changing the formal
  declaration to specify that should not cause any change to the ABI. It is
  still allowable to pass a writable buffer to a function which specifies that
  it will not write to the buffer.

Derrell
source/include/libsmbclient.h
source/libsmb/libsmb_context.c