change log for rtems (2011-10-10)

rtems-vc at rtems.org rtems-vc at rtems.org
Mon Oct 10 08:11:49 UTC 2011


 *ralf*:
2011-10-10	Ralf Corsépius <ralf.corsepius at rtems.org>

	* libfs/src/devfs/devfs_mknod.c: Remove const cast.
	* libfs/src/imfs/ioman.c: Remove const cast.
	* libfs/src/devfs/devfs.h: Make device_name a const char*.
	* sapi/include/rtems/io.h: Make device_name a const char*.

M 1.2943  cpukit/ChangeLog
M   1.10  cpukit/libfs/src/devfs/devfs.h
M    1.3  cpukit/libfs/src/devfs/devfs_mknod.c
M   1.21  cpukit/libfs/src/imfs/ioman.c
M   1.31  cpukit/sapi/include/rtems/io.h

diff -u rtems/cpukit/ChangeLog:1.2942 rtems/cpukit/ChangeLog:1.2943
--- rtems/cpukit/ChangeLog:1.2942	Sun Oct  9 22:47:55 2011
+++ rtems/cpukit/ChangeLog	Mon Oct 10 02:11:25 2011
@@ -1,5 +1,12 @@
 2011-10-10	Ralf Corsépius <ralf.corsepius at rtems.org>
 
+	* libfs/src/devfs/devfs_mknod.c: Remove const cast.
+	* libfs/src/imfs/ioman.c: Remove const cast.
+	* libfs/src/devfs/devfs.h: Make device_name a const char*.
+	* sapi/include/rtems/io.h: Make device_name a const char*.
+
+2011-10-10	Ralf Corsépius <ralf.corsepius at rtems.org>
+
 	* libcsupport/src/termios.c: Remove meaningless typecast.
 
 2011-10-09	Ralf Corsépius <ralf.corsepius at rtems.org>

diff -u rtems/cpukit/libfs/src/devfs/devfs.h:1.9 rtems/cpukit/libfs/src/devfs/devfs.h:1.10
--- rtems/cpukit/libfs/src/devfs/devfs.h:1.9	Thu Jul 15 02:59:57 2010
+++ rtems/cpukit/libfs/src/devfs/devfs.h	Mon Oct 10 02:11:26 2011
@@ -21,7 +21,7 @@
 typedef struct
 {
   /** This member points to device name which is a null-terminated string */
-  char                     *device_name;
+  const char               *device_name;
   /** This member is the name length of a device */
   uint32_t                  device_name_length;
   /** major number of a device */

diff -u rtems/cpukit/libfs/src/devfs/devfs_mknod.c:1.2 rtems/cpukit/libfs/src/devfs/devfs_mknod.c:1.3
--- rtems/cpukit/libfs/src/devfs/devfs_mknod.c:1.2	Sun Nov 29 07:18:56 2009
+++ rtems/cpukit/libfs/src/devfs/devfs_mknod.c	Mon Oct 10 02:11:25 2011
@@ -69,7 +69,7 @@
       rtems_set_errno_and_return_minus_one( ENOMEM );
 
   _ISR_Disable(level);
-  device_name_table[slot].device_name  = (char *)path;
+  device_name_table[slot].device_name  = path;
   device_name_table[slot].device_name_length = strlen(path);
   device_name_table[slot].major = major;
   device_name_table[slot].minor = minor;

diff -u rtems/cpukit/libfs/src/imfs/ioman.c:1.20 rtems/cpukit/libfs/src/imfs/ioman.c:1.21
--- rtems/cpukit/libfs/src/imfs/ioman.c:1.20	Tue Jul  6 17:32:23 2010
+++ rtems/cpukit/libfs/src/imfs/ioman.c	Mon Oct 10 02:11:26 2011
@@ -82,7 +82,7 @@
     return RTEMS_UNSATISFIED;
   }
 
-  device_info->device_name        = (char *) name;
+  device_info->device_name        = name;
   device_info->device_name_length = strlen( name );
   device_info->major              = the_jnode->info.device.major;
   device_info->minor              = the_jnode->info.device.minor;

diff -u rtems/cpukit/sapi/include/rtems/io.h:1.30 rtems/cpukit/sapi/include/rtems/io.h:1.31
--- rtems/cpukit/sapi/include/rtems/io.h:1.30	Sun Nov 29 07:51:52 2009
+++ rtems/cpukit/sapi/include/rtems/io.h	Mon Oct 10 02:11:26 2011
@@ -174,7 +174,7 @@
 /** @} */
 
 typedef struct {
-    char                     *device_name;
+    const char               *device_name;
     size_t                    device_name_length;
     rtems_device_major_number major;
     rtems_device_minor_number minor;



--

Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111010/2a28c2a4/attachment.html>


More information about the vc mailing list