]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/nto-procfs.c
gdb: Use std::min and std::max throughout
[thirdparty/binutils-gdb.git] / gdb / nto-procfs.c
index f358528b9492d4eb9778e5e5d7a0d067b9bb8724..9d581f24673b26044f85a122a1e460055d4e1ce1 100644 (file)
@@ -516,7 +516,7 @@ procfs_meminfo (char *args, int from_tty)
       return;
     }
 
-  num = min (num, num_mapinfos);
+  num = std::min (num, num_mapinfos);
 
   /* Run through the list of mapinfos, and store the data and text info
      so we can print it at the bottom of the loop.  */
@@ -939,7 +939,7 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object,
          tempread = nto_read_auxv_from_initial_stack (initial_stack, tempbuf,
                                                       sizeof_tempbuf,
                                                       sizeof (auxv_t));
-         tempread = min (tempread, len) - offset;
+         tempread = std::min (tempread, len) - offset;
          memcpy (readbuf, tempbuf + offset, tempread);
          *xfered_len = tempread;
          return tempread ? TARGET_XFER_OK : TARGET_XFER_EOF;