qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Laurent Vivier <Laurent.Vivier@bull.net>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH] NBD cleanup
Date: Sat, 07 Jun 2008 14:24:20 +0200	[thread overview]
Message-ID: <1212841460.7985.6.camel@frecb07144> (raw)

[-- Attachment #1: Type: text/plain, Size: 307 bytes --]

This patch removes include of malloc.h from qemu-nbd.c to make it
compile on OS X. (as reported by C.W. Betts and commented by Daniel P.
Berrange)
It adjusts a printf format in nbd.c.
-- 
------------- Laurent.Vivier@bull.net ---------------
"The best way to predict the future is to invent it."
- Alan Kay

[-- Attachment #2: nbd-cleanup.patch --]
[-- Type: text/x-patch, Size: 668 bytes --]

Index: nbd.c
===================================================================
--- nbd.c	(révision 4690)
+++ nbd.c	(copie de travail)
@@ -388,7 +388,7 @@
 	}
 
 	if (len > sizeof(data)) {
-		LOG("len (%u) is larger than max len (%u)",
+		LOG("len (%u) is larger than max len (%lu)",
 		    len, sizeof(data));
 		errno = EINVAL;
 		return -1;
Index: qemu-nbd.c
===================================================================
--- qemu-nbd.c	(révision 4690)
+++ qemu-nbd.c	(copie de travail)
@@ -21,7 +21,6 @@
 #include "block_int.h"
 #include "nbd.h"
 
-#include <malloc.h>
 #include <stdarg.h>
 #include <stdio.h>
 #include <getopt.h>

             reply	other threads:[~2008-06-07 12:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-07 12:24 Laurent Vivier [this message]
2008-06-12 17:09 ` [Qemu-devel] [PATCH] NBD cleanup Anthony Liguori
2008-06-18  7:08   ` Carlo Marcelo Arenas Belon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1212841460.7985.6.camel@frecb07144 \
    --to=laurent.vivier@bull.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).