patch-os_openbsd_cpp 469 B

12345678910111213
  1. $OpenBSD: patch-os_openbsd_cpp,v 1.3 2016/07/01 16:51:16 giovanni Exp $
  2. --- os_openbsd.cpp.orig Wed Jun 29 23:52:24 2016
  3. +++ os_openbsd.cpp Wed Jun 29 23:53:37 2016
  4. @@ -132,7 +132,7 @@ get_dev_names(char ***names, const char *prefix)
  5. n++;
  6. }
  7. - void * tmp = (char **)realloc(mp, n * (sizeof(char *)));
  8. + char ** tmp = (char **)realloc(mp, n * (sizeof(char *)));
  9. if (NULL == tmp) {
  10. pout("Out of memory constructing scan device list\n");
  11. free(mp);