Magellan Linux

Diff of /tags/grubby-8_32/grubby.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1748 by niro, Sat Feb 18 01:07:15 2012 UTC revision 1751 by niro, Sat Feb 18 01:10:10 2012 UTC
# Line 1464  static int endswith(const char *s, char Line 1464  static int endswith(const char *s, char
1464  {  {
1465   int slen;   int slen;
1466    
1467   if (!s && !s[0])   if (!s || !s[0])
1468   return 0;   return 0;
1469   slen = strlen(s) - 1;   slen = strlen(s) - 1;
1470    
# Line 1926  void displayEntry(struct singleEntry * e Line 1926  void displayEntry(struct singleEntry * e
1926      printf("%s%s", line->elements[i].item, line->elements[i].indent);      printf("%s%s", line->elements[i].item, line->elements[i].indent);
1927   printf("\n");   printf("\n");
1928      }      }
1929    
1930        line = getLineByType(LT_TITLE, entry->lines);
1931        if (line) {
1932     printf("title=%s\n", line->elements[1].item);
1933        } else {
1934     char * title;
1935     line = getLineByType(LT_MENUENTRY, entry->lines);
1936     title = grub2ExtractTitle(line);
1937     if (title)
1938        printf("title=%s\n", title);
1939        }
1940  }  }
1941    
1942  int parseSysconfigGrub(int * lbaPtr, char ** bootPtr) {  int parseSysconfigGrub(int * lbaPtr, char ** bootPtr) {

Legend:
Removed from v.1748  
changed lines
  Added in v.1751