# HG changeset patch # User Josef 'Jeff' Sipek # Date 1706586035 18000 # Node ID 3ededa985664e38786f4e4bfba237916f5e24312 # Parent 1c4c64f0ef2157ce310abe472bf688f0c1ba049d io: remove an unused variable Signed-off-by: Josef 'Jeff' Sipek diff -r 1c4c64f0ef21 -r 3ededa985664 io_common.h --- a/io_common.h Mon Jan 29 22:26:59 2024 -0500 +++ b/io_common.h Mon Jan 29 22:40:35 2024 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2020 Josef 'Jeff' Sipek + * Copyright (c) 2011-2020,2024 Josef 'Jeff' Sipek * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -30,11 +30,8 @@ size_t *resid) { char *ptr = buf; - size_t total; ssize_t ret; - total = 0; - while (nbyte) { if (readfxns) { if (useoff) @@ -59,7 +56,6 @@ } nbyte -= ret; - total += ret; ptr += ret; off += ret; }