[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas/src admin.c collectiondata.c connecti...
From: |
Neil Tiffin |
Subject: |
gnue/geas/src admin.c collectiondata.c connecti... |
Date: |
Sat, 02 Jun 2001 06:17:10 -0700 |
CVSROOT: /home/cvs
Module name: gnue
Changes by: Neil Tiffin <address@hidden> 01/06/02 06:17:10
Modified files:
geas/src : admin.c collectiondata.c connection.c
dataobject.c exceptions.c factory.c
geas-server.c geas-skeleton.c objectlist.c
query.c schema.c security.c transaction.c
Log message:
Update headers, remove many complier warnings in the core GEAS code.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/admin.c.diff?cvsroot=OldCVS&tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/collectiondata.c.diff?cvsroot=OldCVS&tr1=1.17&tr2=1.18&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/connection.c.diff?cvsroot=OldCVS&tr1=1.55&tr2=1.56&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/dataobject.c.diff?cvsroot=OldCVS&tr1=1.52&tr2=1.53&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/exceptions.c.diff?cvsroot=OldCVS&tr1=1.15&tr2=1.16&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/factory.c.diff?cvsroot=OldCVS&tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/geas-server.c.diff?cvsroot=OldCVS&tr1=1.92&tr2=1.93&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/geas-skeleton.c.diff?cvsroot=OldCVS&tr1=1.57&tr2=1.58&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/objectlist.c.diff?cvsroot=OldCVS&tr1=1.20&tr2=1.21&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/query.c.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/schema.c.diff?cvsroot=OldCVS&tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/security.c.diff?cvsroot=OldCVS&tr1=1.11&tr2=1.12&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/geas/src/transaction.c.diff?cvsroot=OldCVS&tr1=1.10&tr2=1.11&r1=text&r2=text
Patches:
Index: gnue/geas/src/admin.c
diff -u gnue/geas/src/admin.c:1.7 gnue/geas/src/admin.c:1.8
--- gnue/geas/src/admin.c:1.7 Fri May 25 08:46:50 2001
+++ gnue/geas/src/admin.c Sat Jun 2 06:17:10 2001
@@ -1,6 +1,8 @@
/*
- geas - GNU Enterprise Application Server
+ admin.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2000 Free Software Foundation
@@ -17,6 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: admin.c,v 1.8 2001/06/02 13:17:10 ntiffin Exp $
*/
Index: gnue/geas/src/collectiondata.c
diff -u gnue/geas/src/collectiondata.c:1.17 gnue/geas/src/collectiondata.c:1.18
--- gnue/geas/src/collectiondata.c:1.17 Fri May 25 13:04:54 2001
+++ gnue/geas/src/collectiondata.c Sat Jun 2 06:17:10 2001
@@ -1,5 +1,7 @@
/*
- geas - GNU Enterprise Application Server
+ collectiondata.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2001 Free Software Foundation
@@ -16,6 +18,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: collectiondata.c,v 1.18 2001/06/02 13:17:10 ntiffin Exp $
*/
@@ -53,8 +57,8 @@
char *new_object_collection_from_query( QueryData *query ,
GEAS_object_reference *xid ,
CORBA_Environment *ev )
{
- char newkeydata[16];
- char newkey[64];
+ /* char newkeydata[16]; */
+ /* char newkey[64]; */
GEAS_DataObject lst;
/* GEAS_DataObject obj; */
struct query_result *result;
@@ -141,7 +145,7 @@
oc_set_object_field( ob , "reference", id , FALSE );
oc_flush_object_to_store( ob );
}
- lenstr = g_strdup_printf( "%d" , len );
+ lenstr = g_strdup_printf( "%lu" , len );
GEAS_DataObject_setField( lst , "length" , lenstr, ev );
g_free( lenstr );
Index: gnue/geas/src/connection.c
diff -u gnue/geas/src/connection.c:1.55 gnue/geas/src/connection.c:1.56
--- gnue/geas/src/connection.c:1.55 Fri May 25 16:46:21 2001
+++ gnue/geas/src/connection.c Sat Jun 2 06:17:10 2001
@@ -1,8 +1,10 @@
/*
- geas - GNU Enterprise Application Server
+ connections.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
- Copyright (C) 2000 Free Software Foundation
+ Copyright (C) 2000-2001 Free Software Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,6 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: connection.c,v 1.56 2001/06/02 13:17:10 ntiffin Exp $
*/
@@ -24,6 +28,9 @@
* \brief GEAS::Connection implementation
*/
+#include <ctype.h>
+#include <stdlib.h>
+
#include "config.h"
#include "geas.h"
@@ -235,9 +242,11 @@
char *keystr = NULL;
ObjectKey key = NULL;
odl_class *cl;
- GList *fields, *fl;
- ObjectData *ob;
- GList *parents, *l;
+ /* GList *fields; */
+ /* GList *fl; */
+ /* ObjectData *ob; */
+ GList *parents;
+ /* GList *l; */
cl = odl_find_class(all_classes, classname, NULL);
if (!cl)
@@ -289,7 +298,7 @@
GList *fields, *fl;
ObjectData *ob;
GList *parents, *l;
- CORBA_Environment ev;
+ /* CORBA_Environment ev; */
cl = odl_find_class(all_classes, id->classname, NULL);
if (!cl)
@@ -394,7 +403,7 @@
GEAS_ObjectList retval;
QueryData *q;
char *keystr;
- char tmp[256];
+ /* char tmp[256]; */
/* create query */
if( !odl_find_class( all_classes , classname , NULL ) )
@@ -472,8 +481,8 @@
{
GEAS_DataObject retval;
QueryData *q;
- char *keystr;
- char tmp[256];
+ /* char *keystr; */
+ /* char tmp[256]; */
struct query_result *result;
int err;
char *errmsg;
Index: gnue/geas/src/dataobject.c
diff -u gnue/geas/src/dataobject.c:1.52 gnue/geas/src/dataobject.c:1.53
--- gnue/geas/src/dataobject.c:1.52 Fri May 25 16:46:21 2001
+++ gnue/geas/src/dataobject.c Sat Jun 2 06:17:10 2001
@@ -1,6 +1,8 @@
/*
- geas - GNU Enterprise Application Server
+ dataobject.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2000 Free Software Foundation
@@ -17,13 +19,18 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
+
+ $Id: dataobject.c,v 1.53 2001/06/02 13:17:10 ntiffin Exp $
+
*/
/** \file dataobject.c
* \brief GEAS::DataObject implementation
*/
+#include <ctype.h>
+#include <stdlib.h>
+
#include "config.h"
#include "geas.h"
@@ -82,10 +89,14 @@
odl_class *c;
GList *parents,*l;
int count,i;
-
+ g_assert( id != NULL );
+ g_assert( ev != NULL );
+
c = odl_find_class( all_classes , id->classname , NULL );
if( !c )
- return;
+ {
+ return(NULL);
+ }
retval = GEAS_classnames__alloc();
CORBA_sequence_set_release(retval, CORBA_TRUE);
if( !retval )
@@ -163,7 +174,7 @@
ObjectData *obj;
odl_class *cl;
odl_field *f;
- int err;
+ /* int err; */
trace_functioncall();
/* printf( "get %s.%s" , id->classname , fieldname ); */
@@ -411,7 +422,7 @@
{
GList *s,*t;
char *value;
- char *targetfield;
+ /* char *targetfield; */
odl_class *cl,*c;
odl_field *f;
char *loadclass;
@@ -530,7 +541,7 @@
{
GList *s,*t;
char *value;
- char *targetfield;
+ /* char *targetfield; */
odl_class *cl,*c;
odl_field *f;
char *loadclass;
@@ -538,8 +549,8 @@
ObjectData *o;
char *keystr;
GEAS_ObjectList retval;
- int idfield;
- int err;
+ /* int idfield; */
+ /* int err; */
/* find and validate the field */
cl = odl_find_class( all_classes , id->classname , NULL );
@@ -750,7 +761,7 @@
char *fn,*data;
odl_class *cl;
ObjectData *o;
- int err;
+ /* int err; */
/* find data in this.field<N> */
fn = fields->data; /* name of field in container */
@@ -771,10 +782,11 @@
l = values;
while( fields )
{
- char *fn,*data;
+ char *fn;
+ /* char *data; */
odl_class *cl;
ObjectData *o;
- int err;
+ /* int err; */
/* find obj.field<N> */
fn = fields->data; /* name of field in container */
@@ -895,7 +907,7 @@
char *fn,*data;
odl_class *cl;
ObjectData *o;
- int err;
+ /* int err; */
/* find data in this.field<N> */
fn = fields->data; /* name of field in container */
@@ -916,10 +928,11 @@
l = values;
while( fields )
{
- char *fn,*data;
+ char *fn;
+ /* char *data; */
odl_class *cl;
ObjectData *o;
- int err;
+ /* int err; */
/* find obj.field<N> */
fn = (char *)fields->data; /* name of field in container */
@@ -969,8 +982,8 @@
GEAS_Arguments * args, CORBA_Environment * ev)
{
int i;
- CORBA_char *retval = NULL;
- ObjectData *obj = NULL;
+ /* CORBA_char *retval = NULL; */
+ /* ObjectData *obj = NULL; */
odl_class *cl = NULL;
odl_field *f = NULL;
Index: gnue/geas/src/exceptions.c
diff -u gnue/geas/src/exceptions.c:1.15 gnue/geas/src/exceptions.c:1.16
--- gnue/geas/src/exceptions.c:1.15 Fri May 25 08:46:50 2001
+++ gnue/geas/src/exceptions.c Sat Jun 2 06:17:10 2001
@@ -1,5 +1,7 @@
/*
- geas - GNU Enterprise Application Server
+ excceptions.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2001 Free Software Foundation
@@ -16,6 +18,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: exceptions.c,v 1.16 2001/06/02 13:17:10 ntiffin Exp $
*/
Index: gnue/geas/src/factory.c
diff -u gnue/geas/src/factory.c:1.14 gnue/geas/src/factory.c:1.15
--- gnue/geas/src/factory.c:1.14 Fri May 25 13:04:54 2001
+++ gnue/geas/src/factory.c Sat Jun 2 06:17:10 2001
@@ -1,8 +1,10 @@
/*
- geas - GNU Enterprise Application Server
+ factory.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
- Copyright (C) 2000 Free Software Foundation
+ Copyright (C) 2000-2001 Free Software Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -18,6 +20,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: factory.c,v 1.15 2001/06/02 13:17:10 ntiffin Exp $
*/
@@ -46,7 +50,7 @@
CORBA_Environment *ev)
{
GEAS_Connection c = CORBA_OBJECT_NIL;
- GEAS_Connection retval = CORBA_OBJECT_NIL;
+ /* GEAS_Connection retval = CORBA_OBJECT_NIL; */
GEAS_DataObject user;
ObjectKey key;
char *sessionid;
Index: gnue/geas/src/geas-server.c
diff -u gnue/geas/src/geas-server.c:1.92 gnue/geas/src/geas-server.c:1.93
--- gnue/geas/src/geas-server.c:1.92 Fri Jun 1 17:24:33 2001
+++ gnue/geas/src/geas-server.c Sat Jun 2 06:17:10 2001
@@ -1,7 +1,9 @@
/*
- GEAS - GNU Enterprise Application Server
+ geas-server.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
- Copyright (C) 2000 Free Software Foundation
+ Copyright (C) 2000-2001 Free Software Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,6 +18,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: geas-server.c,v 1.93 2001/06/02 13:17:10 ntiffin Exp $
*/
Index: gnue/geas/src/geas-skeleton.c
diff -u gnue/geas/src/geas-skeleton.c:1.57 gnue/geas/src/geas-skeleton.c:1.58
--- gnue/geas/src/geas-skeleton.c:1.57 Fri May 25 13:04:54 2001
+++ gnue/geas/src/geas-skeleton.c Sat Jun 2 06:17:10 2001
@@ -1,7 +1,9 @@
/*
- geas - GNU Enterprise Application Server
+ geas-skeleton.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
- Copyright (C) 2000 Free Software Foundation
+ Copyright (C) 2000-2001 Free Software Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -16,6 +18,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: geas-skeleton.c,v 1.58 2001/06/02 13:17:10 ntiffin Exp $
*/
@@ -29,6 +33,8 @@
* makes a note of the transaction's id.
*/
+#include <ctype.h>
+
#include "config.h"
#include <glib.h>
@@ -84,10 +90,11 @@
static void
get_users_current_transaction_status(GEAS_object_reference * id)
{
- QueryData *query = NULL;
- ObjectData *user=NULL,*transaction=NULL;
- char *transactionid = NULL;
- char *open;
+ /* QueryData *query = NULL; */
+ /* ObjectData *user=NULL; */
+ /* ObjectData *transaction=NULL; */
+ /* char *transactionid = NULL; */
+ /* char *open; */
id->transactionopen = FALSE;
id->currenttransaction = NULL;
@@ -2000,7 +2007,8 @@
CORBA_char * name, CORBA_long argcount,
CORBA_Environment * ev)
{
- /* not used (yet?) */
+ /* TODO not used (yet?) */
+ return FALSE;
}
static CORBA_char *
@@ -2008,7 +2016,8 @@
CORBA_char * name, GEAS_Arguments * args,
CORBA_Environment * ev)
{
- /* another one that's not used (yet?) */
+ /* TODO another one that's not used (yet?) */
+ return NULL;
}
/******************************************************************/
@@ -2294,7 +2303,7 @@
/* prevent duplicates */
if (count != 0)
{
- return ;
+ return 0;
}
count = 1;
@@ -2420,6 +2429,7 @@
manager: %s" , CORBA_exception_id(&ev) ); } */
CORBA_exception_free(&ev);
+ return 0;
}
#endif
@@ -3135,7 +3145,8 @@
parse_object_id(const char *id)
{
GEAS_object_reference *oi;
- char *p, *tmp;
+ /* char *p; */
+ /* char *tmp; */
oi = alloc_geas_object_reference();
if (!oi)
Index: gnue/geas/src/objectlist.c
diff -u gnue/geas/src/objectlist.c:1.20 gnue/geas/src/objectlist.c:1.21
--- gnue/geas/src/objectlist.c:1.20 Fri May 25 16:46:21 2001
+++ gnue/geas/src/objectlist.c Sat Jun 2 06:17:10 2001
@@ -1,6 +1,8 @@
/*
- geas - GNU Enterprise Application Server
+ objectlist.c
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2000 Free Software Foundation
@@ -17,12 +19,16 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: objectlist.c,v 1.21 2001/06/02 13:17:10 ntiffin Exp $
*/
/** \file objectlist.c
* \brief GEAS::ObjectList implementation
*/
+
+#include <stdlib.h>
#include "config.h"
@@ -64,7 +70,7 @@
GEAS_objectslist *
ObjectList__get_objects(GEAS_object_reference * id, CORBA_Environment * ev)
{
- GEAS_DataObject obj;
+ /* GEAS_DataObject obj; */
GEAS_objectslist *retval = NULL;
int i, len;
@@ -108,7 +114,7 @@
CORBA_Environment * ev)
{
GEAS_DataObject retval = CORBA_OBJECT_NIL;
- GEAS_DataObject lst;
+ /* GEAS_DataObject lst; */
int len;
char *key, *classname = NULL, *pos;
QueryData *q;
@@ -466,7 +472,7 @@
void
ObjectList_release(GEAS_object_reference * id, CORBA_Environment * ev)
{
- QueryData *q;
+ /* QueryData *q; */
struct query_result *result;
/* delete the geas::listholder object */
Index: gnue/geas/src/query.c
diff -u gnue/geas/src/query.c:1.8 gnue/geas/src/query.c:1.9
--- gnue/geas/src/query.c:1.8 Fri May 25 16:46:21 2001
+++ gnue/geas/src/query.c Sat Jun 2 06:17:10 2001
@@ -1,8 +1,10 @@
/*
- geas - GNU Enterprise Application Server
+ query.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
- Copyright (C) 2000 Free Software Foundation
+ Copyright (C) 2000-2001 Free Software Foundation
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,6 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: query.c,v 1.9 2001/06/02 13:17:10 ntiffin Exp $
*/
@@ -217,7 +221,7 @@
void
Query_release(GEAS_object_reference * id, CORBA_Environment * ev)
{
- QueryData *q;
+ /* QueryData *q; */
struct query_result *result;
/* delete the geas::searchcriteria object */
Index: gnue/geas/src/schema.c
diff -u gnue/geas/src/schema.c:1.10 gnue/geas/src/schema.c:1.11
--- gnue/geas/src/schema.c:1.10 Fri May 25 16:46:21 2001
+++ gnue/geas/src/schema.c Sat Jun 2 06:17:10 2001
@@ -1,6 +1,8 @@
/*
- geas - GNU Enterprise Application Server
+ schema.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2001 Free Software Foundation
@@ -17,6 +19,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: schema.c,v 1.11 2001/06/02 13:17:10 ntiffin Exp $
*/
@@ -214,6 +218,7 @@
schema_get_all(GEAS_object_reference * id, CORBA_Environment * ev)
{
fatal_error("Really a TODO here...");
+ return NULL;
}
/** \brief Make a list of all fields in a class
Index: gnue/geas/src/security.c
diff -u gnue/geas/src/security.c:1.11 gnue/geas/src/security.c:1.12
--- gnue/geas/src/security.c:1.11 Fri May 25 13:24:07 2001
+++ gnue/geas/src/security.c Sat Jun 2 06:17:10 2001
@@ -1,5 +1,7 @@
/*
- geas - GNU Enterprise Application Server
+ security.c -
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2001 Free Software Foundation
@@ -16,12 +18,16 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: security.c,v 1.12 2001/06/02 13:17:10 ntiffin Exp $
*/
/** \file security.c
* \brief Support functions for the security system
*/
+
+#include <ctype.h>
#include "config.h"
Index: gnue/geas/src/transaction.c
diff -u gnue/geas/src/transaction.c:1.10 gnue/geas/src/transaction.c:1.11
--- gnue/geas/src/transaction.c:1.10 Fri May 25 13:04:54 2001
+++ gnue/geas/src/transaction.c Sat Jun 2 06:17:10 2001
@@ -1,5 +1,7 @@
/*
- geas - GNU Enterprise Application Server
+ transaction.c
+
+ Part of GNU Enterprise Application Server (GEAS)
Copyright (C) 2001 Free Software Foundation
@@ -16,6 +18,8 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ $Id: transaction.c,v 1.11 2001/06/02 13:17:10 ntiffin Exp $
*/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/geas/src admin.c collectiondata.c connecti...,
Neil Tiffin <=