]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
build: fix PROBE() usage of intptr_t
authorEric Blake <eblake@redhat.com>
Thu, 9 Aug 2012 21:37:03 +0000 (15:37 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 9 Aug 2012 21:40:42 +0000 (15:40 -0600)
Otherwise, in locations like virobject.c where PROBE is used,
for certain configure options, the compiler warns:

util/virobject.c:110:1: error: 'intptr_t' undeclared (first use in this function)

As long as we are making this header always available, we can
clean up several other files.

* src/internal.h (includes): Pull in <stdint.h>.
* src/conf/nwfilter_conf.h: Rely on internal.h.
* src/storage/storage_backend.c: Likewise.
* src/storage/storage_backend.h: Likewise.
* src/util/cgroup.c: Likewise.
* src/util/sexpr.h: Likewise.
* src/util/virhashcode.h: Likewise.
* src/util/virnetdevvportprofile.h: Likewise.
* src/util/virnetlink.h: Likewise.
* src/util/virrandom.h: Likewise.
* src/vbox/vbox_driver.c: Likewise.
* src/xenapi/xenapi_driver.c: Likewise.
* src/xenapi/xenapi_utils.c: Likewise.
* src/xenapi/xenapi_utils.h: Likewise.
* src/xenxs/xenxs_private.h: Likewise.
* tests/storagebackendsheepdogtest.c: Likewise.

16 files changed:
src/conf/nwfilter_conf.h
src/internal.h
src/storage/storage_backend.c
src/storage/storage_backend.h
src/util/cgroup.c
src/util/sexpr.h
src/util/virhashcode.h
src/util/virnetdevvportprofile.h
src/util/virnetlink.h
src/util/virrandom.h
src/vbox/vbox_driver.c
src/xenapi/xenapi_driver.c
src/xenapi/xenapi_utils.c
src/xenapi/xenapi_utils.h
src/xenxs/xenxs_private.h
tests/storagebackendsheepdogtest.c

index 8b05d04501b1e3de1d495ea069ab500a8e16bb78..ca6bd168af34ca8d01d9290fb969c94f1a6097d5 100644 (file)
@@ -2,7 +2,7 @@
  * nwfilter_conf.h: network filter XML processing
  *                  (derived from storage_conf.h)
  *
- * Copyright (C) 2006-2010 Red Hat, Inc.
+ * Copyright (C) 2006-2010, 2012 Red Hat, Inc.
  * Copyright (C) 2006-2008 Daniel P. Berrange
  *
  * Copyright (C) 2010 IBM Corporation
@@ -26,9 +26,6 @@
 #ifndef NWFILTER_CONF_H
 # define NWFILTER_CONF_H
 
-# include <stdint.h>
-# include <stddef.h>
-
 # include "internal.h"
 
 # include "util.h"
index fd8d1902298b1abbb884e93c14ad2bde7738ad1b..300de3ac5c7765d263f9c95a92709631fd6b0a4a 100644 (file)
@@ -9,6 +9,7 @@
 # include <limits.h>
 # include <verify.h>
 # include <stdbool.h>
+# include <stdint.h>
 
 # if STATIC_ANALYSIS
 #  undef NDEBUG /* Don't let a prior NDEBUG definition cause trouble.  */
index 4a2109e80945b89a5c20a2b77ec755bd233d5de5..df3833a342f4b673a2ed5791166f1014ab1b1f8d 100644 (file)
@@ -32,7 +32,6 @@
 #include <sys/wait.h>
 #include <unistd.h>
 #include <fcntl.h>
-#include <stdint.h>
 #include <sys/stat.h>
 #include <sys/param.h>
 #include <dirent.h>
index bafd6b6c6dda1424de2baeda9bf0d0adc980fd68..5352f5d2577f901e9bbbfb2b1b43ec0dd14022db 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * storage_backend.h: internal storage driver backend contract
  *
- * Copyright (C) 2007-2010 Red Hat, Inc.
+ * Copyright (C) 2007-2010, 2012 Red Hat, Inc.
  * Copyright (C) 2007-2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -24,7 +24,6 @@
 #ifndef __VIR_STORAGE_BACKEND_H__
 # define __VIR_STORAGE_BACKEND_H__
 
-# include <stdint.h>
 # include "internal.h"
 # include "storage_conf.h"
 # include "command.h"
index 6c29c874bfdc5c8baa38a4138789e5df30ba8d00..2256c23af4a28c2410d1e28017d43c1eb350e038 100644 (file)
@@ -24,7 +24,6 @@
 #include <config.h>
 
 #include <stdio.h>
-#include <stdint.h>
 #if defined HAVE_MNTENT_H && defined HAVE_GETMNTENT_R
 # include <mntent.h>
 #endif
index 8dfd89a1d81bb5c94f136fc55a0d8e09b331ad2c..b4b41edb6433b0e086716be00b55987739d0804e 100644 (file)
@@ -1,9 +1,8 @@
 /*
  * sexpr.h : S-Expression interfaces needed to communicate with the Xen Daemon
  *
- * Copyright (C) 2005
- *
- *      Anthony Liguori <aliguori@us.ibm.com>
+ * Copyright (C) 2012 Red Hat, Inc.
+ * Copyright (C) 2005 Anthony Liguori <aliguori@us.ibm.com>
  *
  *  This file is subject to the terms and conditions of the GNU Lesser General
  *  Public License. See the file COPYING.LIB in the main directory of this
@@ -16,9 +15,6 @@
 # include "internal.h"
 # include "buf.h"
 
-# include <sys/types.h>
-# include <stdint.h>
-
 enum sexpr_type {
     SEXPR_NIL,
     SEXPR_CONS,
index 2fb7a95bd4ddf496990181d17eb8d53d60c87832..34254b6cf62e5127bd38bd7d64999c2324e7b7ba 100644 (file)
@@ -29,7 +29,6 @@
 # define __VIR_HASH_CODE_H__
 
 # include "internal.h"
-# include <stdint.h>
 
 extern uint32_t virHashCodeGen(const void *key, size_t len, uint32_t seed);
 
index 6cce1bb457a5b6064b36c6d1eef30c653d86ff8b..f33da1878d0b56712ae9738f72cbf03e9b0c1d9b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2011 Red Hat, Inc.
+ * Copyright (C) 2009-2012 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -23,8 +23,6 @@
 #ifndef __VIR_NETDEV_VPORT_PROFILE_H__
 # define __VIR_NETDEV_VPORT_PROFILE_H__
 
-# include <stdint.h>
-
 # include "internal.h"
 # include "uuid.h"
 # include "util.h"
index 1997c8d0e7eb37ad619af28709a720f13d78babb..5d8337dda21fab04cd5f3b21e2c17a26042d4c32 100644 (file)
@@ -24,8 +24,6 @@
 # include "internal.h"
 # include "virmacaddr.h"
 
-# include <stdint.h>
-
 # if defined(__linux__) && defined(HAVE_LIBNL)
 
 #  include <netlink/msg.h>
index 8d3cad722513521f4dabde72867fc1aff6086c50..29a055dcedb0eb78558d8e8c876e80f6be18e8de 100644 (file)
@@ -23,7 +23,6 @@
 # define __VIR_RANDOM_H__
 
 # include "internal.h"
-# include <stdint.h>
 
 uint64_t virRandomBits(int nbits);
 int virRandomGenerateWWN(char **wwn, const char *virt_type);
index b340b7c0610c7a247843f4ff2479c20ad8865369..c4037f8ec158f408dd300e38178f563e34aff5f8 100644 (file)
@@ -3,7 +3,7 @@
  */
 
 /*
- * Copyright (C) 2010-2011 Red Hat, Inc.
+ * Copyright (C) 2010-2012 Red Hat, Inc.
  * Copyright (C) 2008-2009 Sun Microsystems, Inc.
  *
  * This file is part of a free software library; you can redistribute
@@ -29,9 +29,7 @@
 
 #include <config.h>
 
-#include <stdint.h>
 #include <unistd.h>
-#include <sys/types.h>
 
 #include "internal.h"
 
index 5608de8893c8c3d87d05332d1cf971c489f009fd..f57449e34de283ddf62439971b1dfe3fdaf0f0ce 100644 (file)
@@ -23,7 +23,6 @@
 #include <config.h>
 
 #include <limits.h>
-#include <stdint.h>
 #include <string.h>
 #include <curl/curl.h>
 #include <xen/api/xen_all.h>
index 3031a17a5b66ccd5eb2c20134408882239a25e32..d62192a200b04f5653f9f6286b842d62042f3b0c 100644 (file)
@@ -24,7 +24,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <stdint.h>
 #include <xen/api/xen_all.h>
 #include "internal.h"
 #include "domain_conf.h"
index 59124464a6fbc6b54db042b96c60dea2d8df7ed3..86af07c347786b0b5356a3c1dc6e64c124a74be1 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * xenapi_utils.h: Xen API driver -- utils header
+ * Copyright (C) 2012, Red Hat, Inc.
  * Copyright (C) 2009, 2010 Citrix Ltd.
  *
  * This library is free software; you can redistribute it and/or
@@ -22,7 +23,6 @@
 #ifndef __VIR_XENAPI_UTILS__
 # define __VIR_XENAPI_UTILS__
 
-# include <stdint.h>
 # include <xen/api/xen_all.h>
 # include "internal.h"
 # include "viruri.h"
index d0ba59a65be471afd9c76103ed9ae2aa6cf5e1c0..17b481b83c4e01947a7ddfeb73dbff102ae89b53 100644 (file)
@@ -1,8 +1,8 @@
 /*
  * xenxs_private.h: Private definitions for Xen parsing
  *
+ * Copyright (C) 2007, 2010, 2012 Red Hat, Inc.
  * Copyright (C) 2011 Univention GmbH
- * Copyright (C) 2007, 2010 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,6 @@
 
 # include "internal.h"
 
-# include <stdint.h>
 # include <xen/xen.h>
 # include "xen_sxpr.h"
 
index b7b3b35d097d6df051914df7f9258cc10df9aeb7..ba5bc36beb7903337c649ba64325ecc43f24777a 100644 (file)
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <stdint.h>
 #include <string.h>
 
-#include <sys/types.h>
 #include <fcntl.h>
 
 #include "internal.h"