summaryrefslogtreecommitdiffstats
path: root/fish
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2011-04-13 13:00:06 +0200
committerRichard W.M. Jones <rjones@redhat.com>2011-04-13 12:06:27 +0100
commit0db662eae54b21fccadabe817afbc0fa89d980b2 (patch)
tree62e5f9f2c54a1b55e4ac336102d2a2a0cb96f0b3 /fish
parenta53833fdd21cd573fe8fd02d7a11a3a5e9764ce0 (diff)
downloadlibguestfs-0db662eae54b21fccadabe817afbc0fa89d980b2.tar.gz
libguestfs-0db662eae54b21fccadabe817afbc0fa89d980b2.tar.xz
libguestfs-0db662eae54b21fccadabe817afbc0fa89d980b2.zip
Add missing include directives.
* fish/config.c: Include string.h, for use of strlen. * fish/keys.c: Likewise, but for use of memcpy. * fish/man.c: Likewise, but for use of memset.
Diffstat (limited to 'fish')
-rw-r--r--fish/config.c1
-rw-r--r--fish/keys.c3
-rw-r--r--fish/man.c3
3 files changed, 5 insertions, 2 deletions
diff --git a/fish/config.c b/fish/config.c
index c1d34fb4..66d28104 100644
--- a/fish/config.c
+++ b/fish/config.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_LIBCONFIG
#include <libconfig.h>
diff --git a/fish/keys.c b/fish/keys.c
index deb627f8..ec15c8f6 100644
--- a/fish/keys.c
+++ b/fish/keys.c
@@ -1,5 +1,5 @@
/* libguestfs - guestfish and guestmount shared option parsing
- * Copyright (C) 2010 Red Hat Inc.
+ * Copyright (C) 2010-2011 Red Hat Inc.
*
* 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
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
+#include <string.h>
#include "guestfs.h"
diff --git a/fish/man.c b/fish/man.c
index 1965b64e..522a86c0 100644
--- a/fish/man.c
+++ b/fish/man.c
@@ -1,5 +1,5 @@
/* guestfish - the filesystem interactive shell
- * Copyright (C) 2010 Red Hat Inc.
+ * Copyright (C) 2010-2011 Red Hat Inc.
*
* 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
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
+#include <string.h>
#include <sys/wait.h>
#include "fish.h"