diff options
author | jsorg71 <jsorg71> | 2006-11-04 22:05:06 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2006-11-04 22:05:06 +0000 |
commit | 00d8b7106f8b25f313af03c7ef9949873071a6b8 (patch) | |
tree | 561d325577a27d1941114611c670a5c82f9582a6 /xrdp | |
parent | 02118ba0a17d7f3c784ff657e4b107185d3af53e (diff) | |
download | xrdp-proprietary-00d8b7106f8b25f313af03c7ef9949873071a6b8.tar.gz xrdp-proprietary-00d8b7106f8b25f313af03c7ef9949873071a6b8.zip |
commit patch 1589325, slightly modified - code cleanup
Diffstat (limited to 'xrdp')
-rw-r--r-- | xrdp/funcs.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp.h | 6 | ||||
-rw-r--r-- | xrdp/xrdp_bitmap.c | 2 | ||||
-rw-r--r-- | xrdp/xrdp_painter.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/xrdp/funcs.c b/xrdp/funcs.c index 21e20ce6..54355efe 100644 --- a/xrdp/funcs.c +++ b/xrdp/funcs.c @@ -197,7 +197,7 @@ remove_char_at(char* text, int index) /*****************************************************************************/ int APP_CC -set_string(char** in_str, char* in) +set_string(char** in_str, const char* in) { if (in_str == 0) { diff --git a/xrdp/xrdp.h b/xrdp/xrdp.h index bc7622c4..22501954 100644 --- a/xrdp/xrdp.h +++ b/xrdp/xrdp.h @@ -169,7 +169,7 @@ xrdp_bitmap_set_focus(struct xrdp_bitmap* self, int focused); int APP_CC xrdp_bitmap_resize(struct xrdp_bitmap* self, int width, int height); int APP_CC -xrdp_bitmap_load(struct xrdp_bitmap* self, char* filename, int* palette); +xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette); int APP_CC xrdp_bitmap_get_pixel(struct xrdp_bitmap* self, int x, int y); int APP_CC @@ -239,7 +239,7 @@ xrdp_painter_text_height(struct xrdp_painter* self, char* text); int APP_CC xrdp_painter_draw_text(struct xrdp_painter* self, struct xrdp_bitmap* bitmap, - int x, int y, char* text); + int x, int y, const char* text); int APP_CC xrdp_painter_draw_text2(struct xrdp_painter* self, struct xrdp_bitmap* bitmap, @@ -285,7 +285,7 @@ add_char_at(char* text, char ch, int index); int APP_CC remove_char_at(char* text, int index); int APP_CC -set_string(char** in_str, char* in); +set_string(char** in_str, const char* in); /* in lang.c */ char APP_CC diff --git a/xrdp/xrdp_bitmap.c b/xrdp/xrdp_bitmap.c index a709985f..625f7113 100644 --- a/xrdp/xrdp_bitmap.c +++ b/xrdp/xrdp_bitmap.c @@ -330,7 +330,7 @@ xrdp_bitmap_resize(struct xrdp_bitmap* self, int width, int height) /* return 0 ok */ /* return 1 error */ int APP_CC -xrdp_bitmap_load(struct xrdp_bitmap* self, char* filename, int* palette) +xrdp_bitmap_load(struct xrdp_bitmap* self, const char* filename, int* palette) { int fd; int i; diff --git a/xrdp/xrdp_painter.c b/xrdp/xrdp_painter.c index 2f1600c1..d87142e2 100644 --- a/xrdp/xrdp_painter.c +++ b/xrdp/xrdp_painter.c @@ -326,7 +326,7 @@ xrdp_painter_fill_rect(struct xrdp_painter* self, int APP_CC xrdp_painter_draw_text(struct xrdp_painter* self, struct xrdp_bitmap* bitmap, - int x, int y, char* text) + int x, int y, const char* text) { int i; int f; |