Changeset 447435a


Ignore:
Timestamp:
May 13, 2010, 3:26:47 PM (14 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
9ed1278
Parents:
ff426f9
git-author:
Anders Kaseorg <andersk@mit.edu> (05/13/10 15:08:09)
git-committer:
Anders Kaseorg <andersk@mit.edu> (05/13/10 15:26:47)
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

    re54a746 r447435a  
    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.