Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Jul 5, 2015

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit aa1af5fd4a7b801cc506cb511eb09f64c89648b6:

smalloc: fix unused 'int_mask' warning if redzoning is turned off (2015-06-30 15:31:50 -0600)

are available in the git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to 56d50ff3fccfd841921c799f6958ca1e33483959:

t/debug: fix 'fio_debug' declaration (2015-07-03 14:26:08 -0600)

----------------------------------------------------------------
Jens Axboe (2):
smalloc: smalloc() already clears memory, scalloc() need not do it again t/debug: fix 'fio_debug' declaration

 smalloc.c | 8 +-------
 t/debug.c | 2 +-
 2 files changed, 2 insertions(+), 8 deletions(-)

---

Diff of recent changes:

smalloc.c +1 -7
index 6bf66fc..8412e75 100644
@@ -492,13 +492,7 @@ void *smalloc(size_t size)
 
 void *scalloc(size_t nmemb, size_t size)
 {
-	void *ret;
-
-	ret = smalloc(nmemb * size);
-	if (ret)
-		memset(ret, 0, nmemb * size);
-
-	return ret;
+	return smalloc(nmemb * size);
 }
 
 char *smalloc_strdup(const char *str)
t/debug.c +1 -1
index c297d61..bf6f460 100644
@@ -2,7 +2,7 @@
 
 FILE *f_err;
 struct timeval *fio_tv = NULL;
-unsigned int fio_debug = 0;
+unsigned long fio_debug = 0;
 
 void __dprint(int type, const char *str, ...)
 {