diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-10-24 08:44:37 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-10-24 08:44:37 -0700 |
commit | 20d6e2f1d883a3fdda21702d76a42d205286118c (patch) | |
tree | fc3370d6ab007d045a97101b84dbc95add9014c5 | |
parent | 5e19c6ce58a26ce20eb55d98d5cf050f11934add (diff) | |
download | mu-20d6e2f1d883a3fdda21702d76a42d205286118c.tar.gz |
3583
-rw-r--r-- | 091socket.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/091socket.cc b/091socket.cc index 894e84f3..0f509e7e 100644 --- a/091socket.cc +++ b/091socket.cc @@ -302,17 +302,17 @@ case _WRITE_TO_SOCKET: { :(before "End Primitive Recipe Implementations") case _WRITE_TO_SOCKET: { long long int x = static_cast<long long int>(ingredients.at(0).at(0)); - socket_t* session = reinterpret_cast<socket_t*>(x); -//? cerr << "writing to socket " << session->fd << '\n'; - // write just one character at a time to the session socket + socket_t* socket = reinterpret_cast<socket_t*>(x); +//? cerr << "writing to socket " << socket->fd << '\n'; + // write just one character at a time to the socket long long int y = static_cast<long long int>(ingredients.at(1).at(0)); char c = static_cast<char>(y); //? cerr << " " << c << '\n'; - if (write(session->fd, &c, 1) != 1) { + if (write(socket->fd, &c, 1) != 1) { raise << maybe(current_recipe_name()) << "failed to write to socket\n" << end(); exit(0); } - long long int result = reinterpret_cast<long long int>(session); + long long int result = reinterpret_cast<long long int>(socket); products.resize(1); products.at(0).push_back(result); break; |