summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-12-21 00:32:37 +0000
committerCarl Hetherington <cth@carlh.net>2014-12-21 00:32:37 +0000
commitd20f2d026f441ad855a26bcf2e53bc8ef4c3faf7 (patch)
tree29c0e68c33ef8ade0ccada3229f69723cff8e8f1 /src
parent5134a4bdb62ff9ef535a377bb8e7b4106b3654ff (diff)
Fix typos on hand-applying patch.
Diffstat (limited to 'src')
-rw-r--r--src/lib/util.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 0cdfe0b0c..ebb7c046b 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -268,7 +268,7 @@ seconds (struct timeval t)
/** Resolve symbol name and source location given the path to the executable */
int
-addr2line (void const * const adr)
+addr2line (void const * const addr)
{
char addr2line_cmd[512] = { 0 };
sprintf (addr2line_cmd, "addr2line -f -p -e %.256s %p > %s", program_name.c_str(), addr, backtrace_file.string().c_str());
@@ -279,7 +279,8 @@ addr2line (void const * const adr)
* (NOT C++ exceptions!). We write a backtrace to backtrace_file by dark means.
* Adapted from code here: http://spin.atomicobject.com/2013/01/13/exceptions-stack-traces-c/
*/
-LONG WINAPI exception_handler(struct _EXCEPTION_POINTERS *)
+LONG WINAPI
+exception_handler(struct _EXCEPTION_POINTERS * info)
{
FILE* f = fopen_boost (backtrace_file, "w");
fprintf (f, "C-style exception %d\n", info->ExceptionRecord->ExceptionCode);