qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r1630786 - /qpid/proton/branches/examples/proton-c/src/proton-dump.c
Date Fri, 10 Oct 2014 12:40:58 GMT
Author: gsim
Date: Fri Oct 10 12:40:58 2014
New Revision: 1630786

URL: http://svn.apache.org/r1630786
Log:
PROTON-650: use pn_compat utilities for cross platform builds

Modified:
    qpid/proton/branches/examples/proton-c/src/proton-dump.c

Modified: qpid/proton/branches/examples/proton-c/src/proton-dump.c
URL: http://svn.apache.org/viewvc/qpid/proton/branches/examples/proton-c/src/proton-dump.c?rev=1630786&r1=1630785&r2=1630786&view=diff
==============================================================================
--- qpid/proton/branches/examples/proton-c/src/proton-dump.c (original)
+++ qpid/proton/branches/examples/proton-c/src/proton-dump.c Fri Oct 10 12:40:58 2014
@@ -19,9 +19,9 @@
  *
  */
 
-#include <libgen.h>
+#include "pncompat/misc_funcs.inc"
+
 #include <stdio.h>
-#include <unistd.h>
 #include <proton/buffer.h>
 #include <proton/codec.h>
 #include <proton/error.h>
@@ -101,7 +101,7 @@ int dump(const char *file)
 }
 
 void usage(char* prog) {
-  printf("Usage: %s [FILE1] [FILEn] ...\n", basename(prog));
+  printf("Usage: %s [FILE1] [FILEn] ...\n", prog);
   printf("Displays the content of an AMQP dump file containing frame data.\n");
   printf("\n  [FILEn]  Dump file to be displayed.\n\n");
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message