[syslinux:master] syslxopt: fix syntax errors

syslinux-bot for H. Peter Anvin hpa at zytor.com
Wed Jun 20 16:15:02 PDT 2012


Commit-ID:  876bf608bb2a0e4da78dbeb2b0ae40ef88e254c1
Gitweb:     http://www.syslinux.org/commit/876bf608bb2a0e4da78dbeb2b0ae40ef88e254c1
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 20 Jun 2012 16:12:29 -0700
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Wed, 20 Jun 2012 16:12:29 -0700

syslxopt: fix syntax errors

Oops :)

Signed-off-by: H. Peter Anvin <hpa at zytor.com>

---
 libinstaller/syslxopt.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libinstaller/syslxopt.c b/libinstaller/syslxopt.c
index dde4969..b739752 100644
--- a/libinstaller/syslxopt.c
+++ b/libinstaller/syslxopt.c
@@ -89,7 +89,7 @@ void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode)
 	/* Actually extlinux can also use -d to provide a directory too... */
 	fprintf(stderr,
 	    "Usage: %s [options] directory\n"
-	    "  --device         Force use of a specific block device (experts only)\n"
+	    "  --device         Force use of a specific block device (experts only)\n",
 	    program);
 	break;
 
@@ -213,7 +213,7 @@ void parse_options(int argc, char *argv[], enum syslinux_mode mode)
 	    opt.activate_partition = 1;
 	    break;
 	case OPT_DEVICE:
-	    if (mode != EXTLINUX_MODE)
+	    if (mode != MODE_EXTLINUX)
 		usage(EX_USAGE, mode);
 	    opt.device = optarg;
 	    break;


More information about the Syslinux-commits mailing list