comparison usr/src/cmd/prtconf/prtconf.c @ 14063:46608c197f46

3788 /etc/bootrc is defunct and should be removed Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Richard Lowe <richlowe@richlowe.net> Reviewed by: Gary Mills <gary_mills@fastmail.fm>> Approved by: Richard Lowe <richlowe@richlowe.net>
author Piotr Jasiukajtis <estibi@me.com>
date Mon, 24 Jun 2013 10:05:21 -0500
parents 48f2dbca79a2
children
comparison
equal deleted inserted replaced
14062:91abf1cc1546 14063:46608c197f46
339 } 339 }
340 340
341 ret = sysinfo(SI_HW_PROVIDER, hw_provider, sizeof (hw_provider)); 341 ret = sysinfo(SI_HW_PROVIDER, hw_provider, sizeof (hw_provider));
342 /* 342 /*
343 * If 0 bytes are returned (the system returns '1', for the \0), 343 * If 0 bytes are returned (the system returns '1', for the \0),
344 * we're probably on x86, and there has been no si-hw-provider 344 * we're probably on x86, default to Oracle.
345 * set in /etc/bootrc, default to Oracle.
346 */ 345 */
347 if (ret <= 1) { 346 if (ret <= 1) {
348 (void) strncpy(hw_provider, "Oracle Corporation", 347 (void) strncpy(hw_provider, "Oracle Corporation",
349 sizeof (hw_provider)); 348 sizeof (hw_provider));
350 } 349 }