[BACK]Return to gpt.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sbin / gpt

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sbin/gpt/gpt.c between version 1.15 and 1.15.2.2

version 1.15, 2011/08/27 17:38:16 version 1.15.2.2, 2013/01/23 00:05:31
Line 196  utf8_to_utf16(const uint8_t *s8, uint16_
Line 196  utf8_to_utf16(const uint8_t *s8, uint16_
                         /* Initial characters. */                          /* Initial characters. */
                         if (utfbytes != 0) {                          if (utfbytes != 0) {
                                 /* Incomplete encoding. */                                  /* Incomplete encoding. */
                                 s16[s16idx++] = 0xfffd;                                  s16[s16idx++] = htole16(0xfffd);
                                 if (s16idx == s16len) {                                  if (s16idx == s16len) {
                                         s16[--s16idx] = 0;                                          s16[--s16idx] = 0;
                                         return;                                          return;
Line 227  utf8_to_utf16(const uint8_t *s8, uint16_
Line 227  utf8_to_utf16(const uint8_t *s8, uint16_
                         if (utfchar >= 0x10000 && s16idx + 2 >= s16len)                          if (utfchar >= 0x10000 && s16idx + 2 >= s16len)
                                 utfchar = 0xfffd;                                  utfchar = 0xfffd;
                         if (utfchar >= 0x10000) {                          if (utfchar >= 0x10000) {
                                 s16[s16idx++] = 0xd800 | ((utfchar>>10)-0x40);                                  s16[s16idx++] =
                                 s16[s16idx++] = 0xdc00 | (utfchar & 0x3ff);                                      htole16(0xd800 | ((utfchar>>10)-0x40));
                                   s16[s16idx++] =
                                       htole16(0xdc00 | (utfchar & 0x3ff));
                         } else                          } else
                                 s16[s16idx++] = utfchar;                                  s16[s16idx++] = htole16(utfchar);
                         if (s16idx == s16len) {                          if (s16idx == s16len) {
                                 s16[--s16idx] = 0;                                  s16[--s16idx] = 0;
                                 return;                                  return;
Line 326  parse_uuid(const char *s, uuid_t *uuid)
Line 328  parse_uuid(const char *s, uuid_t *uuid)
                         *uuid = lfs;                          *uuid = lfs;
                         return (0);                          return (0);
                 } else if (strcmp(s, "linux") == 0) {                  } else if (strcmp(s, "linux") == 0) {
                         uuid_t lnx = GPT_ENT_TYPE_MS_BASIC_DATA;                          uuid_t lnx = GPT_ENT_TYPE_LINUX_DATA;
                         *uuid = lnx;                          *uuid = lnx;
                         return (0);                          return (0);
                 }                  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.2.2

CVSweb <webmaster@jp.NetBSD.org>