Ignore:
Timestamp:
Feb 21, 2016, 1:05:57 PM (4 years ago)
Author:
nmedfort
Message:

Check in of misc changes prior to symbol table work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/hrtime.h

    r4919 r4937  
    1616
    1717  // open proc/cpuinfo
    18   if ((fp = fopen("/proc/cpuinfo", "r")) == NULL)
     18  if ((fp = fopen("/proc/cpuinfo", "r")) == nullptr)
    1919    return -1;
    2020
    2121  // ignore all lines until we reach MHz information
    22   while (fgets(line, 1024, fp) != NULL) {
    23     if (strstr(line, search_str) != NULL) {
     22  while (fgets(line, 1024, fp) != nullptr) {
     23    if (strstr(line, search_str) != nullptr) {
    2424      // ignore all characters in line up to :
    2525      for (s = line; *s && (*s != ':'); ++s)
     
    3131  }
    3232
    33   if (fp != NULL)
     33  if (fp != nullptr)
    3434    fclose(fp);
    3535  return mhz;
Note: See TracChangeset for help on using the changeset viewer.