diff options
author | dholland <dholland@pkgsrc.org> | 2014-09-11 06:45:45 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2014-09-11 06:45:45 +0000 |
commit | 45a0411d22ce7c6c5ca084a4a237b94c814d3400 (patch) | |
tree | c849fa41c1c492c6efad526200acfc19bc83923a /audio | |
parent | 41990bb029fe43b26228bb17f557faf7fcb46c35 (diff) | |
download | pkgsrc-45a0411d22ce7c6c5ca084a4a237b94c814d3400.tar.gz |
Use <ctype.h> correctly. Yeah, this isn't all that important but I was
prodding the package for another reason and fixed it in passing.
Diffstat (limited to 'audio')
-rw-r--r-- | audio/glyr/distinfo | 3 | ||||
-rw-r--r-- | audio/glyr/patches/patch-lib_stringlib.c | 52 |
2 files changed, 54 insertions, 1 deletions
diff --git a/audio/glyr/distinfo b/audio/glyr/distinfo index 4aa3d110634..fba3c2a3446 100644 --- a/audio/glyr/distinfo +++ b/audio/glyr/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2014/02/16 21:33:00 rodent Exp $ +$NetBSD: distinfo,v 1.3 2014/09/11 06:45:45 dholland Exp $ SHA1 (glyr/1.0.5.tar.gz) = 52ba9b05b9962a22af2f371d0484429db44f2f00 RMD160 (glyr/1.0.5.tar.gz) = d61d5d8ed5c10d9c711ef3136948d2705e9b3399 Size (glyr/1.0.5.tar.gz) = 426382 bytes +SHA1 (patch-lib_stringlib.c) = 7186ba26f007d348f33880b3175d94fe66829c3f diff --git a/audio/glyr/patches/patch-lib_stringlib.c b/audio/glyr/patches/patch-lib_stringlib.c new file mode 100644 index 00000000000..4c78b9526a7 --- /dev/null +++ b/audio/glyr/patches/patch-lib_stringlib.c @@ -0,0 +1,52 @@ +$NetBSD: patch-lib_stringlib.c,v 1.1 2014/09/11 06:45:45 dholland Exp $ + +Use <ctype.h> correctly. + +--- lib/stringlib.c~ 2014-02-08 11:06:45.000000000 +0000 ++++ lib/stringlib.c +@@ -927,8 +927,8 @@ static gchar * trim_in_text (gchar * str + + for (gsize it = 0; it < str_len; it++) + { +- gboolean is_space = isspace (string[it]); +- gboolean is_lfeed = !isblank (string[it]) && is_space; ++ gboolean is_space = isspace ((unsigned char)string[it]); ++ gboolean is_lfeed = !isblank ((unsigned char)string[it]) && is_space; + + lfeed_ctr = (is_lfeed) ? lfeed_ctr + 1 : 0; + space_ctr = (is_space) ? space_ctr + 1 : 0; +@@ -1011,7 +1011,7 @@ void trim_copy (gchar *input, gchar *out + gchar c; + + /* skip spaces at start */ +- while (input[0] && isspace (*input) ) ++ while (input[0] && isspace ((unsigned char)*input) ) + { + ++input; + } +@@ -1023,7 +1023,7 @@ void trim_copy (gchar *input, gchar *out + c = * (output++) = * (input++); + + /* if its not a whitespace, this *could* be the last character */ +- if ( !isspace (c) ) ++ if ( !isspace ((unsigned char)c) ) + { + end = output; + } +@@ -1050,14 +1050,14 @@ gchar * trim_nocopy (gchar * s) + gchar * end = NULL; + + /* skip spaces at start */ +- while (*start && isspace (*start) ) ++ while (*start && isspace ((unsigned char)*start) ) + ++start; + + /* iterate over the rest remebering last non-whitespace */ + char *i = start; + while (*i) + { +- if ( !isspace (* (i++) ) ) ++ if ( !isspace ((unsigned char) * (i++) ) ) + end = i; + } + |