rev 152 - in trunk: include/prothon src

SVN User <[email protected]>
Newsgroups gmane.comp.lang.prothon.cvs
Message-ID <[email protected]>
Author: bcollins
Date: 2004-03-27 09:26:41 -0500 (Sat, 27 Mar 2004)
New Revision: 152

Modified:
   trunk/include/prothon/prothon.h
   trunk/src/main.c
Log:
Fix some warnings.


Modified: trunk/include/prothon/prothon.h
===================================================================
--- trunk/include/prothon/prothon.h	2004-03-27 09:00:48 UTC (rev 151)
+++ trunk/include/prothon/prothon.h	2004-03-27 14:26:41 UTC (rev 152)
@@ -178,7 +178,7 @@
 typedef pr_str_t* pr_str_p;
 
 typedef struct {
-	apr_os_thread_t*	apr_os_thread;
+	apr_os_thread_t		apr_os_thread;
 	apr_thread_t*		apr_thread;
 	int					main_id;
 	int					running;

Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c	2004-03-27 09:00:48 UTC (rev 151)
+++ trunk/src/main.c	2004-03-27 14:26:41 UTC (rev 152)
@@ -103,7 +103,7 @@
 static apr_threadattr_t *thread_attr = NULL;
 static apr_pool_t *thread_pool = NULL;
 
-static obj_p new_thread_obj(apr_thread_start_t thread_func, void *thread_data)
+obj_p new_thread_obj(apr_thread_start_t thread_func, void *thread_data)
 {
 	apr_status_t aprerr;
 	apr_thread_t *new_thread = NULL;
@@ -163,7 +163,7 @@
 
 int main(int argc, char *argv[]) {
 	obj_p sys_argv_obj, main_argv_obj, threads, code_str_obj, main1_thread_obj;
-	pr_thread_p main1_thread_ptr;
+	pr_thread_p main1_thread_ptr = NULL;
 	isp ist;
 	apr_status_t aprerr;
 	char buf[1024];
@@ -205,7 +205,7 @@
 	sys_argv_obj = arginit(ist, argc, argv);
 	sysinit(ist, argv[0], sys_argv_obj);
 
-	if (code_str_obj = get_attr(ist, sys_argv_obj, sym(ist, "code"))) {
+	if ((code_str_obj = get_attr(ist, sys_argv_obj, sym(ist, "code")))) {
 		exec_string(ist, strch(code_str_obj), FALSE, NULL);
 		check_exceptions(ist);
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.