Print this page
12326 hal: the value of *n_speeds should increase rather than the pointer

*** 1,10 **** /*************************************************************************** * * cdutils.c : CD/DVD utilities * ! * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * * Licensed under the Academic Free License version 2.1 * **************************************************************************/ --- 1,10 ---- /*************************************************************************** * * cdutils.c : CD/DVD utilities * ! * Copyright 2006, 2015, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * * Licensed under the Academic Free License version 2.1 * **************************************************************************/
*** 308,318 **** } } if (!skip) { current->next = *nextp; *nextp = current; ! *n_speeds++; } } } void --- 308,318 ---- } } if (!skip) { current->next = *nextp; *nextp = current; ! (*n_speeds)++; } } } void