summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-10-25 13:49:20 +0000
committerDavid M. Lee <dlee@digium.com>2013-10-25 13:49:20 +0000
commit8f43c9716c1b4914a910d72cbf4fa338b40ce635 (patch)
tree4002798ec666f4533133906250b687bb1312918d /addons
parentb7bb1de4d2408f2de26fb5f5862843864f24d1db (diff)
test_json: Fix deprecation warnings
After a series of upgrades over recent weeks, I've discovered that test_json.c won't compile in dev mode any more for me. One of gcc-4.8.2, OS X Mavericks or Xcode 5 has decided to deprecate tempnam. Which, in general, is a good thing. But for test code that just needs a temporary file, it's just annoying. This patch replaces usage of tempname with mkstemp, avoiding the deprecation warning. It also removes the temporary files when the test is complete, which apparently we weren't doing before (oops). Review: https://reviewboard.asterisk.org/r/2957/ ........ Merged revisions 401872 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@401873 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'addons')
0 files changed, 0 insertions, 0 deletions