]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary 'reg' annotations in vmalloc
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 11 Jul 2020 21:00:12 +0000 (14:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Jul 2020 18:53:10 +0000 (11:53 -0700)
Whether these parameters are provided in registers or on the stack is entirely
dictated by the platform's calling convention these days.

lib/vmalloc/vmbest.c

index 0f9af6c67216f8922dcf5fd0542eef51fa21aafe..b8aeb441a45b4800034af3bbfb459333b213783b 100644 (file)
@@ -43,7 +43,7 @@ static bool make_space(Vmdata_t *vd) {
  * @param vm region allocating from
  * @param size desired block size
  */
-static void *bestalloc(Vmalloc_t *vm, reg size_t size) {
+static void *bestalloc(Vmalloc_t *vm, size_t size) {
   Vmdata_t *vd = vm->data;
   void *p;
 
@@ -96,7 +96,7 @@ static int bestfree(Vmalloc_t *vm, void *data) {
  * @param size new size
  * @param type ignored
  */
-static void *bestresize(Vmalloc_t *vm, void *data, reg size_t size, int type) {
+static void *bestresize(Vmalloc_t *vm, void *data, size_t size, int type) {
   Vmdata_t *vd = vm->data;
   size_t i;