Skip to contentSkip to conversation

Make get_interesting_32bit_value() static

PATCH In review [email protected] 1 participant 1 message Mar 4, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 4/7 Make get_interesting_32bit_value() static

From: Tyson Smith <[email protected]>

All calls to get_interesting_32bit_value() should now be made to get_interesting_value() to help simplify generating interesting values.

---
 include/sanitise.h    | 1 -
 interesting-numbers.c | 2 +-
 random.c              | 2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)
include/sanitise.h +0 -1
index bd5c823..5001250 100644
@@ -6,7 +6,6 @@ void generic_sanitise(struct syscallrecord *rec);
 void generic_free_arg(struct syscallrecord *rec);
 
 unsigned long get_interesting_value(void);
-unsigned int get_interesting_32bit_value(void);
 
 void *get_address(void);
 void *get_non_null_address(void);
interesting-numbers.c +1 -1
index e08e27d..311b16d 100644
@@ -55,7 +55,7 @@ static int get_interesting_16bit_value(void)
 	return num;
 }
 
-unsigned int get_interesting_32bit_value(void)
+static unsigned int get_interesting_32bit_value(void)
 {
 	unsigned int num = 0;
 
random.c +1 -1
index 0601f4f..c20acaf 100644
@@ -138,7 +138,7 @@ static unsigned int __rand32(void)
 		break;
 	case 4:	r = rept8(4);
 		break;
-	case 5:	return get_interesting_32bit_value();
+	case 5:	return get_interesting_value();
 	}
 
 	return r;
Signature · 1 line
1.9.1