summaryrefslogtreecommitdiff
path: root/memdisk/setup.c
diff options
context:
space:
mode:
authorhpa <hpa>2002-01-02 07:46:56 +0000
committerhpa <hpa>2002-01-02 07:46:56 +0000
commit6c68e943ceae02ec47169af4a481ea8550544507 (patch)
tree8294b3e6d2bf5bd57af15769021d1ed8d33fdbc2 /memdisk/setup.c
parent3992becdb3d8e424506976518d8a3da011f954be (diff)
downloadsyslinux-6c68e943ceae02ec47169af4a481ea8550544507.tar.gz
Do the version string pointer in the file header correctly.
Diffstat (limited to 'memdisk/setup.c')
-rw-r--r--memdisk/setup.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/memdisk/setup.c b/memdisk/setup.c
index c7560d36..5a6faa1d 100644
--- a/memdisk/setup.c
+++ b/memdisk/setup.c
@@ -14,9 +14,12 @@
#include <stdint.h>
#include "e820.h"
#include "conio.h"
+#include "version.h"
-#define FIRSTYEAR "2001"
-#define COPYYEAR "2002"
+/* A pointer to this is stored in the header */
+const char memdisk_version[] =
+"MEMDISK " VERSION " " DATE
+" Copyright " FIRSTYEAR "-" COPYYEAR " H. Peter Anvin";
extern const char _binary_memdisk_bin_start[], _binary_memdisk_bin_end[];
extern const char _binary_memdisk_bin_size[]; /* Weird, I know */
@@ -438,8 +441,7 @@ uint32_t setup(void)
int total_size;
/* Show signs of life */
- puts("MEMDISK " VERSION " " DATE
- " Copyright " FIRSTYEAR "-" COPYYEAR " H. Peter Anvin\n");
+ printf("%s\n", memdisk_version);
if ( !shdr->ramdisk_image || !shdr->ramdisk_size ) {
puts("MEMDISK: No ramdisk image specified!\n");