Changeset 8a3768b


Ignore:
Timestamp:
May 24, 2010, 8:22:54 PM (10 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
release-1.6
Children:
4be3c76
Parents:
258a3bf
git-author:
Anders Kaseorg <andersk@mit.edu> (05/13/10 15:08:09)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/24/10 20:22:54)
Message:
owl_command_smartnarrow: Correctly use const.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: Nelson Elhage <nelhage@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r935b8d8 r8a3768b  
    12941294  char opt;
    12951295  int instance = 0, related = 0, i;
    1296   char **tmp_argv = owl_malloc(sizeof(char *) * argc);
     1296  const char **tmp_argv = owl_malloc(sizeof(char *) * argc);
    12971297
    12981298  for (i = 0; i < argc; i++)
    12991299    tmp_argv[i] = argv[i];
    13001300
    1301   static struct option options[] = {
     1301  static const struct option options[] = {
    13021302    {"instance", 0, 0, 'i'},
    13031303    {"related",  0, 0, 'r'},
     
    13051305
    13061306  optind = 0;
    1307   while ((opt = getopt_long(argc, tmp_argv, "ir", options, NULL)) != -1) {
     1307  while ((opt = getopt_long(argc, (char **)tmp_argv, "ir", options, NULL)) != -1) {
    13081308    switch (opt) {
    13091309      case 'i':
Note: See TracChangeset for help on using the changeset viewer.