Mercurial > libdvdnav.hg
annotate vm/vmcmd.h @ 438:04cb2d6e4f93 src tip
In vm_new_vm(), use the proper calloc() argument order
.. and don't derive 1 from the unrelated sizeof(char).
Fixes the scan-anaylzer "API violation" warning:
Result of 'calloc' is converted to a pointer of type 'vm_t', which is incompatible with sizeof operand type 'char'
Patch by Fabian Keil <fk AT fabiankeil DOT de>
| author | rathann |
|---|---|
| date | Wed, 04 Dec 2013 23:02:01 +0000 |
| parents | 0a5a6f03b029 |
| children |
| rev | line source |
|---|---|
| 225 | 1 /* |
| 390 | 2 * Copyright (C) 2000, 2001 Martin Norbäck, Håkan Hjort |
| 388 | 3 * |
| 225 | 4 * This file is part of libdvdnav, a DVD navigation library. It is modified |
| 5 * from a file originally part of the Ogle DVD player. | |
| 388 | 6 * |
| 225 | 7 * libdvdnav is free software; you can redistribute it and/or modify |
| 8 * it under the terms of the GNU General Public License as published by | |
| 9 * the Free Software Foundation; either version 2 of the License, or | |
| 10 * (at your option) any later version. | |
| 388 | 11 * |
| 225 | 12 * libdvdnav is distributed in the hope that it will be useful, |
| 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 * GNU General Public License for more details. | |
| 388 | 16 * |
|
389
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
17 * You should have received a copy of the GNU General Public License along |
|
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
18 * with libdvdnav; if not, write to the Free Software Foundation, Inc., |
|
d3c273ced49c
Use consistent license headers everywhere: Fix wrong FSF address.
diego
parents:
388
diff
changeset
|
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 225 | 20 */ |
| 21 | |
| 391 | 22 #ifndef LIBDVDNAV_VMCMD_H |
| 23 #define LIBDVDNAV_VMCMD_H | |
| 225 | 24 |
| 25 void vm_print_mnemonic(vm_cmd_t *command); | |
| 26 void vm_print_cmd(int row, vm_cmd_t *command); | |
| 27 | |
| 391 | 28 #endif /* LIBDVDNAV_VMCMD_H */ |
