projects
/
platform
/
upstream
/
dbus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changes in kdbus transport arising from changing of kdus.h
[platform/upstream/dbus.git]
/
test
/
break-loader.c
diff --git
a/test/break-loader.c
b/test/break-loader.c
index
5cdc865
..
e62b8c2
100644
(file)
--- a/
test/break-loader.c
+++ b/
test/break-loader.c
@@
-1,9
+1,9
@@
-/* -*- mode: C; c-file-style: "gnu" -*- */
+/* -*- mode: C; c-file-style: "gnu"
; indent-tabs-mode: nil;
-*- */
/* dbus-break-loader.c Program to find byte streams that break the message loader
*
* Copyright (C) 2003 Red Hat Inc.
*
/* dbus-break-loader.c Program to find byte streams that break the message loader
*
* Copyright (C) 2003 Red Hat Inc.
*
- * Licensed under the Academic Free License version 2.
0
+ * Licensed under the Academic Free License version 2.
1
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-17,10
+17,11
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 5
9 Temple Place, Suite 330, Boston, MA 02111-1307
USA
+ * Foundation, Inc., 5
1 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
*
*/
*
*/
+#include <config.h>
#include <dbus/dbus.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dbus/dbus.h>
#include <sys/stat.h>
#include <sys/types.h>
@@
-36,7
+37,7
@@
#include <dbus/dbus-string.h>
#include <dbus/dbus-internals.h>
#include <dbus/dbus-test.h>
#include <dbus/dbus-string.h>
#include <dbus/dbus-internals.h>
#include <dbus/dbus-test.h>
-#include <dbus/dbus-marshal.h>
+#include <dbus/dbus-marshal
-basic
.h>
#undef DBUS_COMPILATION
static DBusString failure_dir;
#undef DBUS_COMPILATION
static DBusString failure_dir;
@@
-160,7
+161,7
@@
try_mutated_data (const DBusString *data)
printf ("Child failed, writing %s\n", _dbus_string_get_const_data (&filename));
dbus_error_init (&error);
printf ("Child failed, writing %s\n", _dbus_string_get_const_data (&filename));
dbus_error_init (&error);
- if (!_dbus_string_save_to_file (data, &filename, &error))
+ if (!_dbus_string_save_to_file (data, &filename,
FALSE,
&error))
{
fprintf (stderr, "Failed to save failed message data: %s\n",
error.message);
{
fprintf (stderr, "Failed to save failed message data: %s\n",
error.message);
@@
-445,7
+446,7
@@
randomly_change_one_type (const DBusString *orig_data,
{
int b;
b = _dbus_string_get_byte (mutated, i);
{
int b;
b = _dbus_string_get_byte (mutated, i);
- if (
_
dbus_type_is_valid (b))
+ if (dbus_type_is_valid (b))
{
_dbus_string_set_byte (mutated, i, random_type ());
return;
{
_dbus_string_set_byte (mutated, i, random_type ());
return;
@@
-666,7
+667,7
@@
get_random_seed (void)
fprintf (stderr, "could not open/read /dev/urandom, using current time for seed\n");
fprintf (stderr, "could not open/read /dev/urandom, using current time for seed\n");
- _dbus_get_
current
_time (NULL, &tv_usec);
+ _dbus_get_
monotonic
_time (NULL, &tv_usec);
seed = tv_usec;
}
seed = tv_usec;
}