mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
treewide: improve maintaince
General revisions to maintain code (no functional changes intended). Removed unnecessary linked-list length checks. Fixed some typos on function names / comments. Changed how test_storage forces SEGV due to new compiler warnings. Signed-off-by: Ian Clowes <clowes_ian@hotmail.com>
This commit is contained in:
parent
6bf9b6df9a
commit
9187665f8e
8 changed files with 50 additions and 69 deletions
|
|
@ -429,7 +429,17 @@ static int consume_actions(int argc, char* argv[], int harness_verbosity)
|
|||
args_required = 1;
|
||||
|
||||
char* leaky = dawn_malloc(10);
|
||||
strcpy(leaky, "LEAKED"); // Force use of memory to avoid unused error
|
||||
strcpy(leaky, "TRACKED"); // Force use of memory to avoid unused error
|
||||
|
||||
leaky = malloc(10);
|
||||
strcpy(leaky, "UNTRACKED"); // Force use of memory to avoid unused error
|
||||
}
|
||||
else if (strcmp(*argv, "segv") == 0)
|
||||
{
|
||||
args_required = 1;
|
||||
|
||||
char *badpointer = 0;
|
||||
*badpointer = 0;
|
||||
}
|
||||
else if (strcmp(*argv, "memaudit") == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue