summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/create_chunk.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-03-24 18:55:39 +0000
committerjoerg <joerg@FreeBSD.org>1996-03-24 18:55:39 +0000
commit18d2a8c9e5387edcde838e92ed58f3612eae5509 (patch)
tree80feac0531a85adb4f38e22d68a6af44b6835fcb /lib/libdisk/create_chunk.c
parent4f2da6c6e432a586e31d4261f9c4110e109e428a (diff)
downloadFreeBSD-src-18d2a8c9e5387edcde838e92ed58f3612eae5509.zip
FreeBSD-src-18d2a8c9e5387edcde838e92ed58f3612eae5509.tar.gz
Make libdisk C++ aware:
- add __BEGIN_DECLS and __END_DECLS, - add a bunch of ``const'' qualifiers all over the place, - rename the `private' struct member into `private_data' to avoid the clash with the C++ keyword.
Diffstat (limited to 'lib/libdisk/create_chunk.c')
-rw-r--r--lib/libdisk/create_chunk.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libdisk/create_chunk.c b/lib/libdisk/create_chunk.c
index 6c32a7d..05a22a2 100644
--- a/lib/libdisk/create_chunk.c
+++ b/lib/libdisk/create_chunk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: create_chunk.c,v 1.21.2.6 1995/11/18 10:02:10 jkh Exp $
+ * $Id: create_chunk.c,v 1.22 1995/12/07 10:33:20 peter Exp $
*
*/
@@ -244,7 +244,7 @@ Create_Chunk_DWIM(struct disk *d, struct chunk *parent , u_long size, chunk_e ty
}
int
-MakeDev(struct chunk *c1, char *path)
+MakeDev(struct chunk *c1, const char *path)
{
char *p = c1->name;
u_long cmaj, bmaj, min, unit, part, slice;
@@ -340,7 +340,7 @@ MakeDev(struct chunk *c1, char *path)
}
int
-MakeDevChunk(struct chunk *c1, char *path)
+MakeDevChunk(struct chunk *c1, const char *path)
{
int i;
@@ -353,7 +353,7 @@ MakeDevChunk(struct chunk *c1, char *path)
}
int
-MakeDevDisk(struct disk *d, char *path)
+MakeDevDisk(struct disk *d, const char *path)
{
return MakeDevChunk(d->chunks, path);
}
OpenPOWER on IntegriCloud