OSSP CVS Repository

ossp - Check-in [2765]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2765
Date: 2002-Nov-08 09:59:32 (local)
2002-Nov-08 08:59:32 (UTC)
User:mlelstv
Branch:
Comment: less cluttering name for private data pointer

PR: Submitted by: Reviewed by: Approved by: Obtained from:

Tickets:
Inspections:
Files:
ossp-pkg/sio/sio_hole.c      1.2 -> 1.3     6 inserted, 6 deleted
ossp-pkg/sio/sio_null.c      1.3 -> 1.4     11 inserted, 11 deleted

ossp-pkg/sio/sio_hole.c 1.2 -> 1.3

--- sio_hole.c   2002/11/05 13:23:36     1.2
+++ sio_hole.c   2002/11/08 08:59:32     1.3
@@ -17,13 +17,13 @@
 static
 sio_rc_t hole_init(sio_t *sio, void **u)
 {
-    private_t *mydata;
+    private_t *my;
     
-    mydata = (private_t *)malloc(sizeof(private_t));
-    if (mydata == NULL)
+    my = (private_t *)malloc(sizeof(private_t));
+    if (my == NULL)
         return SIO_ERR_MEM;
 
-    *u = mydata;
+    *u = my;
 
     return SIO_OK;
 }
@@ -45,9 +45,9 @@
 static
 sio_rc_t hole_cleanup(sio_t *sio, void *u)
 {
-    private_t *mydata = (private_t *)u;
+    private_t *my = (private_t *)u;
 
-    free(mydata);
+    free(my);
 
     return SIO_OK;
 }


ossp-pkg/sio/sio_null.c 1.3 -> 1.4

--- sio_null.c   2002/11/05 13:23:36     1.3
+++ sio_null.c   2002/11/08 08:59:32     1.4
@@ -19,17 +19,17 @@
 static
 sio_rc_t null_init(sio_t *sio, void **u)
 {
-    private_t *mydata;
+    private_t *my;
     
-    mydata = (private_t *)malloc(sizeof(private_t));
-    if (mydata == NULL)
+    my = (private_t *)malloc(sizeof(private_t));
+    if (my == NULL)
         return SIO_ERR_MEM;
 
-    mydata->a = 42;
-    mydata->b = 42.0;
-    mydata->c = "42";
+    my->a = 42;
+    my->b = 42.0;
+    my->c = "42";
 
-    *u = mydata;
+    *u = my;
 
     return SIO_OK;
 }
@@ -42,9 +42,9 @@
 static
 sio_rc_t null_configure(sio_t *sio, void *u, void *obj, void *val)
 {
-    private_t *mydata = (private_t *)u;
+    private_t *my = (private_t *)u;
 
-    mydata->a = *(int *)val;
+    my->a = *(int *)val;
 
     return SIO_OK;
 }
@@ -55,9 +55,9 @@
 static
 sio_rc_t null_cleanup(sio_t *sio, void *u)
 {
-    private_t *mydata = (private_t *)u;
+    private_t *my = (private_t *)u;
 
-    free(mydata);
+    free(my);
 
     return SIO_OK;
 }

CVSTrac 2.0.1