Enlightenment CVS committal
Author : vapier
Project : misc
Module : enotes
Dir : misc/enotes/src
Modified Files:
config.c config.h controlcentre.c debug.c ipc.c main.c note.c
note.h saveload.c saveload.h storage.c
Log Message:
cleanup warnings caused by missing prototypes/unused variables
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/config.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- config.c 6 Apr 2005 11:52:26 -0000 1.17
+++ config.c 25 Oct 2005 01:07:53 -0000 1.18
@@ -11,7 +11,7 @@
**************************************************/
-#include "config.h"
+#include "note.h"
/**
* @return: Returns an allocated MainConfig variable with some default values
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/config.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- config.h 6 Apr 2005 11:52:26 -0000 1.11
+++ config.h 25 Oct 2005 01:07:53 -0000 1.12
@@ -17,6 +17,7 @@
#include <stdio.h>
#include <string.h>
#include <limits.h>
+#include <time.h>
#include <Ecore.h>
#include <Ecore_Config.h>
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/controlcentre.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- controlcentre.c 20 Sep 2005 18:22:29 -0000 1.22
+++ controlcentre.c 25 Oct 2005 01:07:53 -0000 1.23
@@ -11,7 +11,7 @@
**************************************************/
-#include "controlcentre.h"
+#include "note.h"
ControlCentre *controlcentre;
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/debug.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- debug.c 27 Nov 2004 22:48:01 -0000 1.6
+++ debug.c 25 Oct 2005 01:07:53 -0000 1.7
@@ -11,7 +11,7 @@
**************************************************/
-#include "debug.h"
+#include "note.h"
extern MainConfig *main_config;
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/ipc.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -3 -r1.12 -r1.13
--- ipc.c 12 Mar 2005 23:37:15 -0000 1.12
+++ ipc.c 25 Oct 2005 01:07:53 -0000 1.13
@@ -85,8 +85,6 @@
void handle_ipc_message(void *data){
RecvMsg *p;
NoteStor *note;
- Ecore_Timer *close;
- char *msg;
char *content;
p = parse_message((char *)data);
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/main.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- main.c 10 Sep 2005 21:06:13 -0000 1.22
+++ main.c 25 Oct 2005 01:07:53 -0000 1.23
@@ -27,9 +27,7 @@
int
main(int argc, char *argv[])
{
- char *spec_conf;
int note_count;
- int a;
/* IPC Check */
ecore_ipc_init();
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -3 -r1.53 -r1.54
--- note.c 9 Oct 2005 12:11:48 -0000 1.53
+++ note.c 25 Oct 2005 01:07:53 -0000 1.54
@@ -35,7 +35,8 @@
}
void new_note_with_values(int x,int y,int width,int height,char *content){
- Note *p=new_note_with_values_return(x,y,width,height,content);
+ /*Note *p = */
+ new_note_with_values_return(x,y,width,height,content);
}
Note*
@@ -76,7 +77,6 @@
remove_note(Evas_List * note)
{
Note *p = evas_list_data(note);
- char *note_title;
dml("Closing a Note", 2);
@@ -627,7 +627,6 @@
int edje_w, edje_h;
Evas_List *working;
Note *note;
- int count = get_note_count();
char *edjefn = malloc(PATH_MAX);
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/note.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- note.h 6 Apr 2005 13:06:43 -0000 1.22
+++ note.h 25 Oct 2005 01:07:53 -0000 1.23
@@ -20,13 +20,14 @@
#include <Edje.h>
#include <Ewl.h>
+#include "../config.h"
#include "debug.h"
#include "config.h"
#include "controlcentre.h"
#include "saveload.h"
#include "ipc.h"
#include "menu.h"
-#include "../config.h"
+#include "msgbox.h"
#define NOTE_PART "Main"
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/saveload.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- saveload.c 3 Oct 2005 14:48:55 -0000 1.22
+++ saveload.c 25 Oct 2005 01:07:53 -0000 1.23
@@ -48,12 +48,11 @@
setup_saveload_win(void)
{
char *headers[1];
- Ecore_Timer *revtim;
/* Setup the Window */
saveload->win = ewl_window_new();
ewl_window_title_set((Ewl_Window *) saveload->win, "E-Notes Save/Load");
- ewl_window_class_set((Ewl_Window *) saveload->win, "Enotes");
+ ewl_window_class_set((Ewl_Window *) saveload->win, "Enotes");
ewl_object_fill_policy_set((Ewl_Object *) saveload->win,
EWL_FLAG_FILL_ALL);
ewl_object_size_request((Ewl_Object *) saveload->win, 400, 350);
@@ -220,7 +219,6 @@
void
ewl_saveload_close(Ewl_Widget * o, void *ev_data, void *ud)
{
- Ecore_Evas *ee=ud;
ewl_widget_destroy(saveload->win);
free(saveload);
saveload = NULL;
@@ -261,7 +259,8 @@
}
void
-ewl_saveload_save_by_name(char *p){
+ewl_saveload_save_by_name(char *p)
+{
saveload_selected=p;
ewl_saveload_save(NULL,NULL,NULL);
}
@@ -472,7 +471,6 @@
void
ewl_load_revert(Ewl_Widget * widget, void *ev_data, void*ud)
{
- Ewl_Widget *p=ud;
dml("Refreshing the Load Note List", 2);
ewl_container_reset((Ewl_Container *) load->tree);
fill_load_tree();
@@ -490,7 +488,6 @@
void
ewl_load_close(Ewl_Widget * o, void *ev_data, void*ud)
{
- Ecore_Evas *ee=ud;
ewl_widget_destroy(load->win);
free(load);
load = NULL;
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/saveload.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- saveload.h 6 Apr 2005 14:03:32 -0000 1.10
+++ saveload.h 25 Oct 2005 01:07:53 -0000 1.11
@@ -78,6 +78,7 @@
void *ud);
void ewl_saveload_load(Ewl_Widget * o, void *ev_data, void *null);
void ewl_saveload_save(Ewl_Widget * o, void *ev_data, void *null);
+void ewl_saveload_save_by_name(char *p);
void ewl_saveload_listitem_click(Ewl_Widget * o, void *ev_data,
void *null);
===================================================================
RCS file: /cvsroot/enlightenment/misc/enotes/src/storage.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- storage.c 6 Apr 2005 13:06:43 -0000 1.14
+++ storage.c 25 Oct 2005 01:07:53 -0000 1.15
@@ -137,7 +137,8 @@
char *fullstr = malloc(NOTE_LIMIT * 2);
Note *note;
- sprintf(fullstr, "");
+ p = NULL;
+ fullstr[0] = '\0';
if ((fp = fopen(target, "r")) != NULL) {
while ((str = fgets(str, NOTE_LIMIT, fp)) != NULL) {
sprintf(fullstr, "%s%s", fullstr, str);
-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs