summaryrefslogtreecommitdiffstats
path: root/gl/wcrtomb.c
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-08 01:11:46 (GMT)
committerThomas Guyot-Sionnest <dermoth@aei.ca>2010-04-13 01:26:35 (GMT)
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/wcrtomb.c
parentc63a4f726a0b6ad8cf6040f947754a81fd4683bb (diff)
downloadmonitoring-plugins-74da141e618ef99959d509cb2e7be35a348a39db.tar.gz
Sync with the latest Gnulib code (177f525)
Signed-off-by: Thomas Guyot-Sionnest <dermoth@aei.ca>
Diffstat (limited to 'gl/wcrtomb.c')
-rw-r--r--gl/wcrtomb.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gl/wcrtomb.c b/gl/wcrtomb.c
index 79df99f..e7345f6 100644
--- a/gl/wcrtomb.c
+++ b/gl/wcrtomb.c
@@ -1,5 +1,5 @@
1/* Convert wide character to multibyte character. 1/* Convert wide character to multibyte character.
2 Copyright (C) 2008 Free Software Foundation, Inc. 2 Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
3 Written by Bruno Haible <bruno@clisp.org>, 2008. 3 Written by Bruno Haible <bruno@clisp.org>, 2008.
4 4
5 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
@@ -43,11 +43,11 @@ wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
43 int ret = wctomb (s, wc); 43 int ret = wctomb (s, wc);
44 44
45 if (ret >= 0) 45 if (ret >= 0)
46 return ret; 46 return ret;
47 else 47 else
48 { 48 {
49 errno = EILSEQ; 49 errno = EILSEQ;
50 return (size_t)(-1); 50 return (size_t)(-1);
51 } 51 }
52 } 52 }
53} 53}