[Pkg-wmaker-commits] [wmbiff] 09/14: -Wwrite-strings cleanliness
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:00:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_3_4
in repository wmbiff.
commit 12adaa61d1aec82674845d1bcac39c9fef4dc43e
Author: bluehal <bluehal>
Date: Fri Nov 16 06:08:58 2001 +0000
-Wwrite-strings cleanliness
---
wmgeneral/wmgeneral.c | 20 ++++++++++----------
wmgeneral/wmgeneral.h | 4 ++--
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/wmgeneral/wmgeneral.c b/wmgeneral/wmgeneral.c
index 56b7bd6..ae4b212 100644
--- a/wmgeneral/wmgeneral.c
+++ b/wmgeneral/wmgeneral.c
@@ -62,7 +62,7 @@ int d_depth;
XSizeHints mysizehints;
XWMHints mywmhints;
Pixel back_pix, fore_pix;
-char *Geometry = "";
+const char *Geometry = "";
Window iconwin, win;
GC NormalGC;
XpmIcon wmgen;
@@ -86,8 +86,8 @@ MOUSE_REGION mouse_region[MAX_MOUSE_REGION];
/* Function Prototypes */
/***********************/
-static void GetXPM(XpmIcon *, char **);
-static Pixel GetColor(char *);
+static void GetXPM(XpmIcon *, const char **);
+static Pixel GetColor(const char *);
void RedrawWindow(void);
void AddMouseRegion(int, int, int, int, int);
int CheckMouseRegion(int, int);
@@ -100,7 +100,7 @@ void parse_rcfile(const char *filename, rckeys *keys) {
char *p,*q;
char temp[128];
- char *tokens = " :\t\n";
+ const char *tokens = " :\t\n";
FILE *fp;
int i,key;
@@ -135,7 +135,7 @@ void parse_rcfile2(const char *filename, rckeys2 *keys) {
char *p;
char temp[128];
- char *tokens = " :\t\n";
+ const char *tokens = " :\t\n";
FILE *fp;
int i,key;
char *family = NULL;
@@ -165,7 +165,7 @@ void parse_rcfile2(const char *filename, rckeys2 *keys) {
|* GetXPM *|
\*******************************************************************************/
-static void GetXPM(XpmIcon *wmgen, char *pixmap_bytes[]) {
+static void GetXPM(XpmIcon *wmgen, const char *pixmap_bytes[]) {
XWindowAttributes attributes;
int err;
@@ -175,7 +175,7 @@ static void GetXPM(XpmIcon *wmgen, char *pixmap_bytes[]) {
wmgen->attributes.valuemask |= (XpmReturnPixels | XpmReturnExtensions);
- err = XpmCreatePixmapFromData(display, Root, pixmap_bytes, &(wmgen->pixmap),
+ err = XpmCreatePixmapFromData(display, Root, (char **)pixmap_bytes, &(wmgen->pixmap),
&(wmgen->mask), &(wmgen->attributes));
if (err != XpmSuccess) {
@@ -188,7 +188,7 @@ static void GetXPM(XpmIcon *wmgen, char *pixmap_bytes[]) {
|* GetColor *|
\*******************************************************************************/
-static Pixel GetColor(char *name) {
+static Pixel GetColor(const char *name) {
XColor color;
XWindowAttributes attributes;
@@ -288,7 +288,7 @@ int CheckMouseRegion(int x, int y) {
/*******************************************************************************\
|* createXBMfromXPM *|
\*******************************************************************************/
-void createXBMfromXPM(char *xbm, char **xpm, int sx, int sy) {
+void createXBMfromXPM(char *xbm, const char **xpm, int sx, int sy) {
int i,j,k;
int width, height, numcol, depth;
@@ -366,7 +366,7 @@ void setMaskXY(int x, int y) {
/*******************************************************************************\
|* openXwindow *|
\*******************************************************************************/
-void openXwindow(int argc, char *argv[], char *pixmap_bytes[], char *pixmask_bits, int pixmask_width, int pixmask_height) {
+void openXwindow(int argc, char *argv[], const char *pixmap_bytes[], char *pixmask_bits, int pixmask_width, int pixmask_height) {
unsigned int borderwidth = 1;
XClassHint classHint;
diff --git a/wmgeneral/wmgeneral.h b/wmgeneral/wmgeneral.h
index e9d6ca6..7bd23cf 100644
--- a/wmgeneral/wmgeneral.h
+++ b/wmgeneral/wmgeneral.h
@@ -45,11 +45,11 @@ Display *display;
void AddMouseRegion(int index, int left, int top, int right, int bottom);
int CheckMouseRegion(int x, int y);
-void openXwindow(int argc, char *argv[], char **, char *, int, int);
+void openXwindow(int argc, char *argv[], const char **, char *, int, int);
void RedrawWindow(void);
void RedrawWindowXY(int x, int y);
-void createXBMfromXPM(char *, char **, int, int);
+void createXBMfromXPM(char *, const char **, int, int);
void copyXPMArea(int, int, int, int, int, int);
void copyXBMArea(int, int, int, int, int, int);
void setMaskXY(int, int);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list