summaryrefslogtreecommitdiff
path: root/src/qbiff.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-03 22:05:52 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-03 22:05:52 +0200
commite6e9663d40f7aab9e1982dddcaa11386551ad182 (patch)
tree39c2a34aa78d4723e8308d270e872f61da3818ca /src/qbiff.c
parent20b85c03e751b4876fa3c92040464e483172b746 (diff)
fix issues preventing compilationjannis
Diffstat (limited to 'src/qbiff.c')
-rw-r--r--src/qbiff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qbiff.c b/src/qbiff.c
index 800e1f2..0fda293 100644
--- a/src/qbiff.c
+++ b/src/qbiff.c
@@ -116,7 +116,7 @@ int main()
if (fdutmp == -1) _exit(0);
buffer_init(&b, read, fdutmp, bufutmp, sizeof(bufutmp));
- while (buffer_get(&b, &ut, sizeof(ut)) == sizeof(ut)) {
+ while (buffer_get(&b, (char *)&ut, sizeof(ut)) == sizeof(ut)) {
if (!str_diffn(ut.ut_name, user, sizeof(ut.ut_name))) {
#else
while ((ut = getutxent()) != 0) {