[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-388-g2aabf7f)



The branch, master has been updated
       via  2aabf7fa7200f55b6bf3825cdf382af901484f0a (commit)
      from  1d7d0b9f7f0cc38a79b7e392756dcb359b61bdbb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 libgeda/include/prototype.h |    2 +-
 libgeda/src/s_basic.c       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


=================
 Commit Messages
=================

commit 2aabf7fa7200f55b6bf3825cdf382af901484f0a
Author: Gabriel Paubert <paubert@xxxxxxx>
Date:   Wed Dec 17 14:31:12 2008 +0000

    libgeda: Fix type parameter to s_basic_new_object, which should be an int
    
    The type parameter is stored as int in the OBJECT structure, so we should
    be careful that this function can accept any valid type number.

:100644 100644 05672d6... c2dcba9... M	libgeda/include/prototype.h
:100644 100644 86d2679... 34ac573... M	libgeda/src/s_basic.c

=========
 Changes
=========

commit 2aabf7fa7200f55b6bf3825cdf382af901484f0a
Author: Gabriel Paubert <paubert@xxxxxxx>
Date:   Wed Dec 17 14:31:12 2008 +0000

    libgeda: Fix type parameter to s_basic_new_object, which should be an int
    
    The type parameter is stored as int in the OBJECT structure, so we should
    be careful that this function can accept any valid type number.

diff --git a/libgeda/include/prototype.h b/libgeda/include/prototype.h
index 05672d6..c2dcba9 100644
--- a/libgeda/include/prototype.h
+++ b/libgeda/include/prototype.h
@@ -317,7 +317,7 @@ char *s_attrib_get(int counter);
 void error_if_called(void);
 void exit_if_null(void *ptr);
 OBJECT *s_basic_init_object(OBJECT *new_node, int type, char const *name);
-OBJECT *s_basic_new_object(char type, char const *prefix);
+OBJECT *s_basic_new_object(int type, char const *prefix);
 void print_struct_forw(GList *list);
 void print_struct(OBJECT *ptr);
 void s_delete_object(TOPLEVEL *toplevel, OBJECT *o_current);
diff --git a/libgeda/src/s_basic.c b/libgeda/src/s_basic.c
index 86d2679..34ac573 100644
--- a/libgeda/src/s_basic.c
+++ b/libgeda/src/s_basic.c
@@ -154,7 +154,7 @@ OBJECT *s_basic_init_object(OBJECT *new_node, int type, char const *name)
  *  \param [in] prefix    The name prefix for the session-unique object name.
  *  \return A pointer to the fully constructed OBJECT.
  */
-OBJECT *s_basic_new_object(char type, char const *prefix)
+OBJECT *s_basic_new_object(int type, char const *prefix)
 {
   return s_basic_init_object(g_malloc(sizeof (OBJECT)), type, prefix);
 }




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs