[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/kscd/libwm
From:       Dirk Mueller <mueller () kde ! org>
Date:       2004-02-22 4:02:20
Message-ID: 20040222040220.C95739959 () office ! kde ! org
[Download RAW message or body]

CVS commit by mueller: 

- fix compile (missing include)
- make global variables static


  M +13 -14    database.c   1.6


--- kdemultimedia/kscd/libwm/database.c  #1.5:1.6
@@ -28,6 +28,4 @@
  */
 
-static char database_id[] = "$Id$";
-
 #define RCFILE "/.workmanrc"
 #define DBFILE "/.workmandb"
@@ -45,4 +43,5 @@ static char database_id[] = "$Id$";
 #include <sys/time.h>
 #include <sys/stat.h>
+#include <time.h>
 #include "include/wm_config.h"
 #include "include/wm_helpers.h"
@@ -68,22 +67,22 @@ int save_entry(char *filename, int pref)
 /* local prototypes END */
 
-int     suppress_locking = 0;   /* Turn off locking of datafile (dangerous) */
+static int      suppress_locking = 0;   /* Turn off locking of datafile (dangerous) */
 
-char    *rcfile = NULL;         /* Personal rcfile */
-char    *dbfiles = NULL;        /* Colon-separated list of databases */
-char    **databases = NULL;     /* NULL-terminated list of databases */
+static char     *rcfile = NULL;         /* Personal rcfile */
+static char     *dbfiles = NULL;        /* Colon-separated list of databases */
+static char     **databases = NULL;     /* NULL-terminated list of databases */
 
-char    *otherrc = NULL;        /* Unrecognized cruft from start of rcfile */
+static char     *otherrc = NULL;        /* Unrecognized cruft from start of rcfile */
 
-long    rcpos, rclen;           /* XXX */
+static long     rcpos, rclen;           /* XXX */
 
-int     found_in_db, found_in_rc;
-long    holepos, firstpos;
+static int      found_in_db, found_in_rc;
+static long     holepos, firstpos;
 
-int fuzz_frames = FUZZFRAMES;
+static int fuzz_frames = FUZZFRAMES;
 
-int wm_db_save_disabled = FALSE;
+static int wm_db_save_disabled = FALSE;
 
-int cur_playnew = -1;
+static int cur_playnew = -1;
 
 extern int cur_ntracks, cur_nsections;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic