gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/rtmp r9747: change a few argument names to


From: rob
Subject: [Gnash-commit] /srv/bzr/gnash/rtmp r9747: change a few argument names to be more consistant.
Date: Wed, 19 Nov 2008 10:41:28 -0700
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9747
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-11-19 10:41:28 -0700
message:
  change a few argument names to be more consistant.
modified:
  libnet/network.cpp
  libnet/network.h
=== modified file 'libnet/network.cpp'
--- a/libnet/network.cpp        2008-11-18 16:08:34 +0000
+++ b/libnet/network.cpp        2008-11-19 17:41:28 +0000
@@ -853,15 +853,15 @@
 };
 
 int
-Network::writeNet(const std::string& buffer)
+Network::writeNet(const std::string& data)
 {
-    return writeNet(reinterpret_cast<const byte_t *>(buffer.c_str()), 
buffer.size());
+    return writeNet(reinterpret_cast<const byte_t *>(data.c_str()), 
data.size());
 }
 
 int
-Network::writeNet(const byte_t *buffer, int nbytes)
+Network::writeNet(const byte_t *data, int nbytes)
 {
-    return writeNet(_sockfd, buffer, nbytes, _timeout);
+    return writeNet(_sockfd, data, nbytes, _timeout);
 }
 
 // int
@@ -877,9 +877,9 @@
 // }
 
 int
-Network::writeNet(int fd, const byte_t *buffer, int nbytes)
+Network::writeNet(int fd, const byte_t *data, int nbytes)
 {
-    return writeNet(fd, buffer, nbytes, _timeout);
+    return writeNet(fd, data, nbytes, _timeout);
 }
 
 int

=== modified file 'libnet/network.h'
--- a/libnet/network.h  2008-11-18 16:08:34 +0000
+++ b/libnet/network.h  2008-11-19 17:41:28 +0000
@@ -170,8 +170,8 @@
     ///
     /// @return The number of bytes read.
     int writeNet(amf::Buffer *buffer);
-    int writeNet(const std::string &buffer);
-    int writeNet(const byte_t *buffer, int nbytes);
+    int writeNet(const std::string &data);
+    int writeNet(const byte_t *data, int nbytes);
 //    int writeNet(int fd, const byte_t *buffer);
     int writeNet(int fd, const byte_t *buffer, int nbytes);
     int writeNet(int fd, const byte_t *buffer, int nbytes, int timeout);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]