This avoids a compiler warning (and does the right thing(TM)).
int
main (int argc, char **argv)
{
int
main (int argc, char **argv)
{
- char *test = "test string";
+ const char* test = "test string";
int pair[2];
if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
int pair[2];
if (socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
void
write_cb(int fd, short event)
{
void
write_cb(int fd, short event)
{
- char *test = "test string";
+ const char* test = "test string";
int len;
len = write(fd, test, strlen(test) + 1);
int len;
len = write(fd, test, strlen(test) + 1);