[BACK]Return to label.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/label.c between version 1.2 and 1.3

version 1.2, 2006/10/15 22:36:29 version 1.3, 2006/10/15 22:43:30
Line 173  name_from_file(const char *fn)
Line 173  name_from_file(const char *fn)
                 fclose(f);                  fclose(f);
         name[len] = '\0';          name[len] = '\0';
         /* Only keep the first line, excluding the newline character. */          /* Only keep the first line, excluding the newline character. */
         p = strchr(name, '\n');          p = strchr((const char *)name, '\n');
         if (p != NULL)          if (p != NULL)
                 *p = '\0';                  *p = '\0';
 }  }
Line 214  cmd_label(int argc, char *argv[])
Line 214  cmd_label(int argc, char *argv[])
                 case 'l':                  case 'l':
                         if (name != NULL)                          if (name != NULL)
                                 usage_label();                                  usage_label();
                         name = strdup(optarg);                          name = (uint8_t *)strdup(optarg);
                         break;                          break;
                 case 's':                  case 's':
                         if (size > 0)                          if (size > 0)

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

CVSweb <webmaster@jp.NetBSD.org>