svn commit: r258425 - head/sys/dev/nand
Grzegorz Bernacki
gber at FreeBSD.org
Thu Nov 21 09:19:15 UTC 2013
Author: gber
Date: Thu Nov 21 09:19:14 2013
New Revision: 258425
URL: http://svnweb.freebsd.org/changeset/base/258425
Log:
Unbreak compilation with GCC.
Modified:
head/sys/dev/nand/nand_cdev.c
head/sys/dev/nand/nand_geom.c
Modified: head/sys/dev/nand/nand_cdev.c
==============================================================================
--- head/sys/dev/nand/nand_cdev.c Thu Nov 21 06:54:28 2013 (r258424)
+++ head/sys/dev/nand/nand_cdev.c Thu Nov 21 09:19:14 2013 (r258425)
@@ -298,7 +298,8 @@ nand_ioctl(struct cdev *dev, u_long cmd,
struct nand_oob_rw *oob_rw = NULL;
struct nand_raw_rw *raw_rw = NULL;
device_t nandbus;
- size_t bufsize, len, raw_size;
+ size_t bufsize = 0, len = 0;
+ size_t raw_size;
off_t off;
uint8_t *buf = NULL;
int ret = 0;
Modified: head/sys/dev/nand/nand_geom.c
==============================================================================
--- head/sys/dev/nand/nand_geom.c Thu Nov 21 06:54:28 2013 (r258424)
+++ head/sys/dev/nand/nand_geom.c Thu Nov 21 09:19:14 2013 (r258425)
@@ -197,7 +197,8 @@ nand_ioctl(struct disk *ndisk, u_long cm
struct nand_oob_rw *oob_rw = NULL;
struct nand_raw_rw *raw_rw = NULL;
device_t nandbus;
- size_t bufsize, len, raw_size;
+ size_t bufsize = 0, len = 0;
+ size_t raw_size;
off_t off;
uint8_t *buf = NULL;
int ret = 0;
More information about the svn-src-all
mailing list