Added const qualifier.

This commit is contained in:
Roland Illig 2005-09-05 02:04:23 +00:00
parent 14e619d39e
commit fed479813e

View File

@ -1130,7 +1130,7 @@ pty_open_slave (const char *pty_name)
static int pty_open_master (char *pty_name) static int pty_open_master (char *pty_name)
{ {
int pty_master; int pty_master;
char *ptr1, *ptr2; const char *ptr1, *ptr2;
strcpy (pty_name, "/dev/ptyXX"); strcpy (pty_name, "/dev/ptyXX");
for (ptr1 = "pqrstuvwxyzPQRST"; *ptr1; ++ptr1) for (ptr1 = "pqrstuvwxyzPQRST"; *ptr1; ++ptr1)