Module Name: src Committed By: rillig Date: Tue Sep 14 21:45:20 UTC 2021
Modified Files: src/usr.sbin/sysinst: partman.c Log Message: sysinst: fix lint error about empty compound literal In C99, a compound literal must have at least one expression between the braces. Empty structs and compound literals are a GNU extension. The first member of struct part_entry has type size_t, therefore 0 fits well. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.53 src/usr.sbin/sysinst/partman.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/sysinst/partman.c diff -u src/usr.sbin/sysinst/partman.c:1.52 src/usr.sbin/sysinst/partman.c:1.53 --- src/usr.sbin/sysinst/partman.c:1.52 Sat Jul 17 11:32:50 2021 +++ src/usr.sbin/sysinst/partman.c Tue Sep 14 21:45:20 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: partman.c,v 1.52 2021/07/17 11:32:50 martin Exp $ */ +/* $NetBSD: partman.c,v 1.53 2021/09/14 21:45:20 rillig Exp $ */ /* * Copyright 2012 Eugene Lozovoy @@ -403,12 +403,12 @@ pm_dev_list(int type) (num_devs+1<3)?3:num_devs+1, 13, MC_SCROLL | MC_NOCLEAR, NULL, NULL, NULL, NULL, MSG_cancel); if (menu_no == -1) - return (struct part_entry) { }; + return (struct part_entry) { 0 }; process_menu(menu_no, &dev_num); free_menu(menu_no); if (dev_num < 0 || dev_num >= num_devs) - return (struct part_entry) { }; + return (struct part_entry) { 0 }; pm_retvalue = dev_num; return disk_entries[dev_num];