diff options
author | dos-reis <gdr@axiomatics.org> | 2012-08-19 00:39:07 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2012-08-19 00:39:07 +0000 |
commit | 308f70df7e403e68e0ae936ad00500ad46a914b9 (patch) | |
tree | a2b6fb5f771bc1c8a521b32aec9272905cdb3b22 /src/lib | |
parent | 23e3d955132e04a74e804da81890e7fe9390bc30 (diff) | |
download | open-axiom-308f70df7e403e68e0ae936ad00500ad46a914b9.tar.gz |
* include/util.H1 (getmemWithLine): Second argument is now const char*.
(saymemWithLine): First argument is now char*.
* lib/util.c: Propogate change.
* include/XSpadFill.h (SpadFillGC): Change last parameter type to
const char*.
* lib/XSpadFill.c (SpadFillGC): Likewise.
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/XSpadFill.c | 2 | ||||
-rw-r--r-- | src/lib/util.c | 14 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/XSpadFill.c b/src/lib/XSpadFill.c index fe805ff2..f4408db9 100644 --- a/src/lib/XSpadFill.c +++ b/src/lib/XSpadFill.c @@ -172,7 +172,7 @@ XSpadFillSetArcMode(Display *dsply, int mode) } GC -SpadFillGC(Display *dsply,int hue, int theshade,char * fill_routine) +SpadFillGC(Display *dsply,int hue, int theshade, const char* fill_routine) { int dither; int color; diff --git a/src/lib/util.c b/src/lib/util.c index c82358c5..0441a4f4 100644 --- a/src/lib/util.c +++ b/src/lib/util.c @@ -66,8 +66,8 @@ checker(int code, int lineNumber, char *errorStr) -char * -getmemWithLine(int nbytes, char *str, int lineNum) +const char* +getmemWithLine(int nbytes, const char* str, int lineNum) { char *p; @@ -80,14 +80,10 @@ getmemWithLine(int nbytes, char *str, int lineNum) } -char * -saymemWithLine(char *str, int num, int size, int lineNum) +const char * +saymemWithLine(const char *str, int num, int size, int lineNum) { - char *p; - - p = getmemWithLine(num * size, str, lineNum); - return p; - + return getmemWithLine(num * size, str, lineNum); } |