aboutsummaryrefslogtreecommitdiff
path: root/gl/btowc.c
diff options
context:
space:
mode:
authorGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2010-04-07 21:11:46 -0400
committerGravatar Thomas Guyot-Sionnest <dermoth@aei.ca> 2010-04-12 21:26:35 -0400
commit74da141e618ef99959d509cb2e7be35a348a39db (patch)
tree88ebc38b381a1021fc2d74864a71e230ae591c3d /gl/btowc.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/btowc.c')
-rw-r--r--gl/btowc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gl/btowc.c b/gl/btowc.c
index 7f3b9663..8744602a 100644
--- a/gl/btowc.c
+++ b/gl/btowc.c
@@ -1,5 +1,5 @@
/* Convert unibyte character to wide character.
- Copyright (C) 2008 Free Software Foundation, Inc.
+ Copyright (C) 2008, 2010 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2008.
This program is free software: you can redistribute it and/or modify
@@ -21,6 +21,7 @@
#include <wchar.h>
#include <stdio.h>
+#include <stdlib.h>
wint_t
btowc (int c)
@@ -32,7 +33,7 @@ btowc (int c)
buf[0] = c;
if (mbtowc (&wc, buf, 1) >= 0)
- return wc;
+ return wc;
}
return WEOF;
}