make C library example work with strict C compilers

This commit is contained in:
Axel Kohlmeyer
2021-09-29 10:37:15 -04:00
parent 81d3eb0b2e
commit 2651e6ec2f

View File

@ -34,7 +34,7 @@ simple example demonstrating its use:
int lmpargc = sizeof(lmpargv)/sizeof(const char *);
/* create LAMMPS instance */
handle = lammps_open_no_mpi(lmpargc, lmpargv, NULL);
handle = lammps_open_no_mpi(lmpargc, (char **)lmpargv, NULL);
if (handle == NULL) {
printf("LAMMPS initialization failed");
lammps_mpi_finalize();