projects
/
platform
/
upstream
/
dbus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Foxp][Test] simple echo test with custom payload size
[platform/upstream/dbus.git]
/
dbus
/
dbus-pipe-unix.c
diff --git
a/dbus/dbus-pipe-unix.c
b/dbus/dbus-pipe-unix.c
index
79a826f
..
cfc5704
100644
(file)
--- a/
dbus/dbus-pipe-unix.c
+++ b/
dbus/dbus-pipe-unix.c
@@
-22,6
+22,7
@@
*
*/
*
*/
+#include <config.h>
#include "dbus-protocol.h"
#include "dbus-string.h"
#include "dbus-internals.h"
#include "dbus-protocol.h"
#include "dbus-string.h"
#include "dbus-internals.h"
@@
-49,7
+50,7
@@
_dbus_pipe_write (DBusPipe *pipe,
{
int written;
{
int written;
- written = _dbus_write (pipe->fd
_or_handle
, buffer, start, len);
+ written = _dbus_write (pipe->fd, buffer, start, len);
if (written < 0)
{
dbus_set_error (error, DBUS_ERROR_FAILED,
if (written < 0)
{
dbus_set_error (error, DBUS_ERROR_FAILED,
@@
-64,13
+65,13
@@
_dbus_pipe_write (DBusPipe *pipe,
*
* @param pipe the pipe instance
* @param error return location for an error
*
* @param pipe the pipe instance
* @param error return location for an error
- * @returns
#FALSE
if error is set
+ * @returns
-1
if error is set
*/
int
_dbus_pipe_close (DBusPipe *pipe,
DBusError *error)
{
*/
int
_dbus_pipe_close (DBusPipe *pipe,
DBusError *error)
{
- if (
_dbus_close (pipe->fd_or_handle, error) < 0
)
+ if (
!_dbus_close (pipe->fd, error)
)
{
return -1;
}
{
return -1;
}