Module: xenomai-3
Branch: next
Commit: 169fcb1dcca5640137efa4f6ac95bd870c365210
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=169fcb1dcca5640137efa4f6ac95bd870c365210

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Mar 25 12:09:30 2015 +0100

copperplate/clockobj: drop useless name property

---

 config/apirev                  |    2 +-
 include/copperplate/clockobj.h |    3 +--
 lib/alchemy/init.c             |    2 +-
 lib/copperplate/clockobj.c     |    3 +--
 lib/psos/init.c                |    2 +-
 lib/vxworks/init.c             |    2 +-
 6 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/config/apirev b/config/apirev
index f599e28..b4de394 100644
--- a/config/apirev
+++ b/config/apirev
@@ -1 +1 @@
-10
+11
diff --git a/include/copperplate/clockobj.h b/include/copperplate/clockobj.h
index 736463f..fdd4cae 100644
--- a/include/copperplate/clockobj.h
+++ b/include/copperplate/clockobj.h
@@ -58,7 +58,6 @@ struct clockobj {
        unsigned int resolution;
        unsigned int frequency;
 #endif
-       const char *name;       /* __ref FIXME */
 };
 
 #define zero_time      ((struct timespec){ .tv_sec = 0, .tv_nsec = 0 })
@@ -99,7 +98,7 @@ int clockobj_set_resolution(struct clockobj *clkobj,
                            unsigned int resolution_ns);
 
 int clockobj_init(struct clockobj *clkobj,
-                 const char *name, unsigned int resolution_ns);
+                 unsigned int resolution_ns);
 
 int clockobj_destroy(struct clockobj *clkobj);
 
diff --git a/lib/alchemy/init.c b/lib/alchemy/init.c
index daaa757..14ec212 100644
--- a/lib/alchemy/init.c
+++ b/lib/alchemy/init.c
@@ -109,7 +109,7 @@ static int alchemy_init(void)
        syncluster_init(&alchemy_heap_table, "alchemy.heap");
        pvcluster_init(&alchemy_alarm_table, "alchemy.alarm");
 
-       ret = clockobj_init(&alchemy_clock, "alchemy", clock_resolution);
+       ret = clockobj_init(&alchemy_clock, clock_resolution);
        if (ret) {
                warning("%s: failed to initialize Alchemy clock (res=%u ns)",
                        __FUNCTION__, clock_resolution);
diff --git a/lib/copperplate/clockobj.c b/lib/copperplate/clockobj.c
index b908fd7..21a420d 100644
--- a/lib/copperplate/clockobj.c
+++ b/lib/copperplate/clockobj.c
@@ -365,7 +365,7 @@ void clockobj_get_distance(struct clockobj *clkobj,
 }
 
 int clockobj_init(struct clockobj *clkobj,
-                 const char *name, unsigned int resolution_ns)
+                 unsigned int resolution_ns)
 {
        pthread_mutexattr_t mattr;
        struct timespec now;
@@ -395,7 +395,6 @@ int clockobj_init(struct clockobj *clkobj,
 
        __RT(clock_gettime(CLOCK_COPPERPLATE, &now));
        timespec_sub(&clkobj->offset, &clkobj->epoch, &now);
-       clkobj->name = name;
 
        return 0;
 }
diff --git a/lib/psos/init.c b/lib/psos/init.c
index ee29767..99521fa 100644
--- a/lib/psos/init.c
+++ b/lib/psos/init.c
@@ -117,7 +117,7 @@ static int psos_init(void)
        pvcluster_init(&psos_pt_table, "psos.pt");
        pvcluster_init(&psos_rn_table, "psos.rn");
 
-       ret = clockobj_init(&psos_clock, "psos", clock_resolution);
+       ret = clockobj_init(&psos_clock, clock_resolution);
        if (ret) {
                warning("%s: failed to initialize pSOS clock (res=%u ns)",
                        __FUNCTION__, clock_resolution);
diff --git a/lib/vxworks/init.c b/lib/vxworks/init.c
index 17ab7e8..54b7cf9 100644
--- a/lib/vxworks/init.c
+++ b/lib/vxworks/init.c
@@ -90,7 +90,7 @@ static int vxworks_init(void)
 
        cluster_init(&wind_task_table, "vxworks.task");
 
-       ret = clockobj_init(&wind_clock, "vxworks", clock_resolution);
+       ret = clockobj_init(&wind_clock, clock_resolution);
        if (ret) {
                warning("%s: failed to initialize VxWorks clock (res=%u ns)",
                        __FUNCTION__, clock_resolution);


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to