summaryrefslogtreecommitdiff
path: root/stringsort.c
diff options
context:
space:
mode:
Diffstat (limited to 'stringsort.c')
-rw-r--r--stringsort.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/stringsort.c b/stringsort.c
index ed8c913..b38f5bd 100644
--- a/stringsort.c
+++ b/stringsort.c
@@ -52,7 +52,6 @@ static void strsift(unsigned long *optrarray,
double
DoStringSort(void)
{
- const char* context = "CPU:String Sort";
unsigned char* array = NULL;
clock_t total_time = 0;
int iterations = 0;
@@ -72,10 +71,6 @@ DoStringSort(void)
** (this can happen during string adjustment)
*/
array = realloc(array, (ARRAY_SIZE + 100) * num_arrays);
- if (!array) {
- fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context);
- exit(1);
- }
/*
** Do an iteration of the string sort. If the
@@ -90,10 +85,6 @@ DoStringSort(void)
** Simply allocate the space for the array.
*/
array = malloc((ARRAY_SIZE + 100) * num_arrays);
- if (!array) {
- fprintf(stderr, "Error in %s, could not allocate memory. Exitting...\n", context);
- exit(1);
- }
}
do {
@@ -247,11 +238,6 @@ while(k<num_arrays)
** offset pointer array.
*/
optrarray = malloc(*nstrings * sizeof(unsigned long) * num_arrays);
-if (!optrarray) {
- /* FIXME: add error message */
- free(strarray);
- exit(1);
-}
/*
** Go through the newly-built string array, building