1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

16 Commits

Author SHA1 Message Date
Andrew Bartlett
c0f5af21ac lib/replace: Do not typedef int bool
We need a genuine boolean type, as otherwise expressions like

	bool foo = (4 & 4);
	if (foo == true) {
		exit(1);
	} else {
		exit(2);
	}

could evaluate differently on non-modern platforms, and
that would be a real pain to debug.

_Bool and bool are in C99

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15028

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Mar 23 12:31:47 UTC 2022 on sn-devel-184
2022-03-23 12:31:47 +00:00
Aurelien Aptel
0fa9f347fd examples/perfcounter/perf_writer.c: fix memset
Signed-off-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2016-03-30 18:26:09 +02:00
Andreas Schneider
f71b5e44e7 examples: Fix scanf format in perf_writer_disk.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2013-11-15 11:07:52 -08:00
David Disseldorp
a96a9534ab s3-perfcount: fix build for example perfcount daemon
Signed-off-by: Günther Deschner <gd@samba.org>
2012-01-04 15:17:18 +01:00
Günther Deschner
5815119cb0 s3-perfcount: make it possible to compile the example perfcount daemon.
Guenther
2010-07-16 23:00:17 +02:00
Günther Deschner
cd82d4ba56 s3: add perfcount idl and generated files.
Guenther
2009-10-01 12:19:43 +02:00
Karolin Seeger
2e09746a4d examples: Avoid bashism in perfcount.init.
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.

Karolin
2009-01-05 16:34:05 +01:00
Karolin Seeger
997f0fdadd Revert "examples: Avoid bashism in perfcount.init."
This reverts commit 73875cd344.
2009-01-05 16:34:05 +01:00
Karolin Seeger
73875cd344 examples: Avoid bashism in perfcount.init.
This fixes bug #6000.
Thanks to the Debian Samba package maintainers for providing the patch!
Remove trailing whitespaces.

Karolin
2009-01-05 14:54:28 +01:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362)
2007-10-10 12:28:27 -05:00
Jeremy Allison
2a9b4da0fa r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
(This used to be commit c2f7ab1c17)
2007-10-10 12:28:21 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Volker Lendecke
8cf89d2532 r19857: Make the perfcounter compile after tdb changes
(This used to be commit ab0a41c13b)
2007-10-10 12:16:03 -05:00
Gerald Carter
b84c86f7c9 r13677: patch from Max N. Boyarov <m.boyarov@sam-solutions.net>
Prevent div/0 when sysconf(_SC_NPROCESSORS_ONLN) fails.
(This used to be commit 9a33525552)
2007-10-10 11:10:22 -05:00
Gerald Carter
7b3d349251 r11942: patch from Marcin to fix the mkdir() in perfcount daemon
(This used to be commit 3e05e88bb6)
2007-10-10 11:05:38 -05:00
Gerald Carter
77460a9075 r11579: syncing up perf counter code cfrom trunk
(This used to be commit 59c00924b6)
2007-10-10 11:05:21 -05:00