summaryrefslogtreecommitdiff
path: root/pjmedia/src/test/rtp_test.c
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2005-11-01 16:42:51 +0000
committerBenny Prijono <bennylp@teluu.com>2005-11-01 16:42:51 +0000
commit81ecc233996dcddfbef707bd9a5099f5d9e5eb13 (patch)
treec735c382ff2dac0179b96505c4192ee70185372d /pjmedia/src/test/rtp_test.c
parentb5a1af6f999820564ead4867b1e5d5574778ee56 (diff)
Added suppor /and fix things for SunOS port
git-svn-id: http://svn.pjsip.org/repos/pjproject/main@2 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjmedia/src/test/rtp_test.c')
-rw-r--r--pjmedia/src/test/rtp_test.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/pjmedia/src/test/rtp_test.c b/pjmedia/src/test/rtp_test.c
index 9b70a894..abb21c4e 100644
--- a/pjmedia/src/test/rtp_test.c
+++ b/pjmedia/src/test/rtp_test.c
@@ -1,20 +1,20 @@
-/* $Header: /pjproject/pjmedia/src/test/rtp_test.c 4 3/12/05 4:21p Bennylp $ */
-#include <pjmedia/rtp.h>
-#include <stdio.h>
-
-int rtp_test()
-{
- pj_rtp_session rtp;
- FILE *fhnd = fopen("RTP.DAT", "wb");
- const void *rtphdr;
- int hdrlen;
-
- if (!fhnd)
- return -1;
-
- pj_rtp_session_init (&rtp, 4, 0x12345678);
- pj_rtp_encode_rtp (&rtp, 4, 0, 0, 160, &rtphdr, &hdrlen);
- fwrite (rtphdr, hdrlen, 1, fhnd);
- fclose(fhnd);
- return 0;
-}
+/* $Header: /pjproject/pjmedia/src/test/rtp_test.c 4 3/12/05 4:21p Bennylp $ */
+#include <pjmedia/rtp.h>
+#include <stdio.h>
+
+int rtp_test()
+{
+ pj_rtp_session rtp;
+ FILE *fhnd = fopen("RTP.DAT", "wb");
+ const void *rtphdr;
+ int hdrlen;
+
+ if (!fhnd)
+ return -1;
+
+ pj_rtp_session_init (&rtp, 4, 0x12345678);
+ pj_rtp_encode_rtp (&rtp, 4, 0, 0, 160, &rtphdr, &hdrlen);
+ fwrite (rtphdr, hdrlen, 1, fhnd);
+ fclose(fhnd);
+ return 0;
+}