From: krw Date: Sat, 20 May 2023 15:16:47 +0000 (+0000) Subject: p_fragblock = DISKLABELV1_FFS_FRAGBLOCK(0, 0) sets p_fragblock to X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4ef23dae89915d86a7bdadfe983da2f3dbd7c36d;p=openbsd p_fragblock = DISKLABELV1_FFS_FRAGBLOCK(0, 0) sets p_fragblock to 0. Just use p_fragblock = 0 as in all other initializations of p_fragblock. No functional change. --- diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index eb1bbc35675..2589949a0ce 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.405 2023/05/13 18:13:42 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.406 2023/05/20 15:16:47 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -761,7 +761,7 @@ editor_resize(struct disklabel *lp, const char *p) DL_SETPOFFSET(pp, off); if (off + DL_GETPSIZE(pp) > ending_sector) { DL_SETPSIZE(pp, ending_sector - off); - pp->p_fragblock = DISKLABELV1_FFS_FRAGBLOCK(0, 0); + pp->p_fragblock = 0; if (get_fsize(&label, i) == 1 || get_bsize(&label, i) == 1 || get_cpg(&label, i) == 1)