]> git.michaelhowe.org Git - packages/o/openafs.git/commit
ptserver: Simplify malloc assignment to shut up clang
authorSimon Wilkinson <sxw@your-file-system.com>
Tue, 12 Feb 2013 13:12:47 +0000 (13:12 +0000)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 20 Feb 2013 20:30:08 +0000 (12:30 -0800)
commit0f46f6b333b92e66ad987778f5084e3620cff30a
tree4e25c9e7f31667c23ba3dba4ed8bd1fa1359644b
parent06ad9d96b0100d35ba61ddd1d1d5bead9067e78d
ptserver: Simplify malloc assignment to shut up clang

Using a temporary variable of type (char *) to store the results
of malloc and realloc, and then casting the tmp variable to the
real type causes clang-analyzer to complain. Just simplify this
code by always using the real type in order to shut it up.

Change-Id: I607bb36d1899dc617fdbd9e09e18ff10c9fa9ce9
Reviewed-on: http://gerrit.openafs.org/9148
Reviewed-by: Marc Dionne <marc.c.dionne@gmail.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/ptserver/ptutils.c