diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2006-07-07 02:44:23 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2006-07-07 02:44:23 +0000 |
| commit | 17a5febb8801ecd497a73f88e6fdd3c2070f030f (patch) | |
| tree | 1e671c90a72743347122886d6d1b448233e2faac | |
| parent | ae39ffc92eeb4a2ec863702791f80601d270197a (diff) | |
Notes
| -rw-r--r-- | sbin/gpt/gpt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/gpt/gpt.c b/sbin/gpt/gpt.c index 38dc55744498..b45cfd104cc5 100644 --- a/sbin/gpt/gpt.c +++ b/sbin/gpt/gpt.c @@ -269,42 +269,42 @@ parse_uuid(const char *s, uuid_t *uuid) switch (*s) { case 'e': - if (strcmp(optarg, "efi") == 0) { + if (strcmp(s, "efi") == 0) { uuid_t efi = GPT_ENT_TYPE_EFI; *uuid = efi; return (0); } break; case 'h': - if (strcmp(optarg, "hfs") == 0) { + if (strcmp(s, "hfs") == 0) { uuid_t hfs = GPT_ENT_TYPE_APPLE_HFS; *uuid = hfs; return (0); } break; case 'l': - if (strcmp(optarg, "linux") == 0) { + if (strcmp(s, "linux") == 0) { uuid_t lnx = GPT_ENT_TYPE_MS_BASIC_DATA; *uuid = lnx; return (0); } break; case 's': - if (strcmp(optarg, "swap") == 0) { + if (strcmp(s, "swap") == 0) { uuid_t sw = GPT_ENT_TYPE_FREEBSD_SWAP; *uuid = sw; return (0); } break; case 'u': - if (strcmp(optarg, "ufs") == 0) { + if (strcmp(s, "ufs") == 0) { uuid_t ufs = GPT_ENT_TYPE_FREEBSD_UFS; *uuid = ufs; return (0); } break; case 'w': - if (strcmp(optarg, "windows") == 0) { + if (strcmp(s, "windows") == 0) { uuid_t win = GPT_ENT_TYPE_MS_BASIC_DATA; *uuid = win; return (0); |
