Skip to content

Commit ae57249

Browse files
committed
fixes #21 - fix compilation error on Mac OS X 10.8.5
1 parent bd5e085 commit ae57249

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/heapusage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ showusage()
4747

4848
showversion()
4949
{
50-
echo "heapusage v2.15"
50+
echo "heapusage v2.16"
5151
echo ""
5252
echo "Copyright (C) 2017-2025 Kristofer Berggren"
5353
echo ""

src/heapusage.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
2-
.TH HEAPUSAGE "1" "April 2025" "heapusage v2.15" "User Commands"
2+
.TH HEAPUSAGE "1" "May 2025" "heapusage v2.16" "User Commands"
33
.SH NAME
44
heapusage \- find memory leaks in applications
55
.SH SYNOPSIS

tests/ex003.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ class Simple {
1515

1616
/**
1717
* @brief Convert std::string to char *
18-
*
19-
* @param str
20-
* @return char*
18+
*
19+
* @param str
20+
* @return char*
2121
*/
2222
char * string_to_char(const std::string& str){
2323
char * cstr = new char [str.length()+1];
@@ -27,8 +27,8 @@ char * string_to_char(const std::string& str){
2727

2828
/**
2929
* @brief Instantiate C++ vector, unique pointer, raw pointer
30-
*
31-
* @return int
30+
*
31+
* @return int
3232
*/
3333
int main() {
3434
/* vector - part 1 */
@@ -55,5 +55,5 @@ int main() {
5555
(void)_hello;
5656
// do not free: delete _hello;
5757

58-
return EXIT_SUCCESS;
58+
return 0;
5959
}

0 commit comments

Comments
 (0)