~ubuntu-branches/ubuntu/trusty/netpipe/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/3.0-quilt-source-init

  • Committer: Package Import Robot
  • Author(s): Camm Maguire
  • Date: 2012-05-10 13:15:48 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: package-import@ubuntu.com-20120510131548-kwbdnaoxeuqh946r
Tags: 3.7.2-7
prioity set to extra

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: <short summary of the patch>
 
2
 TODO: Put a short summary on the line above and replace this paragraph
 
3
 with a longer explanation of this change. Complete the meta-information
 
4
 with other relevant fields (see below for details). To make it easier, the
 
5
 information below has been extracted from the changelog. Adjust it or drop
 
6
 it.
 
7
 .
 
8
 netpipe (3.7.2-1) unstable; urgency=low
 
9
 .
 
10
   * New upstream release
 
11
   * lintian fixes
 
12
Author: Camm Maguire <camm@debian.org>
 
13
 
 
14
---
 
15
The information above should follow the Patch Tagging Guidelines, please
 
16
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
 
17
are templates for supplementary fields that you might want to add:
 
18
 
 
19
Origin: <vendor|upstream|other>, <url of original patch>
 
20
Bug: <url in upstream bugtracker>
 
21
Bug-Debian: http://bugs.debian.org/<bugnumber>
 
22
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
 
23
Forwarded: <no|not-needed|url proving that it has been forwarded>
 
24
Reviewed-By: <name and email of someone who approved the patch>
 
25
Last-Update: <YYYY-MM-DD>
 
26
 
 
27
--- netpipe-3.7.2.orig/src/netpipe.h
 
28
+++ netpipe-3.7.2/src/netpipe.h
 
29
@@ -18,6 +18,7 @@
 
30
 #include <stdio.h>
 
31
 #include <string.h>
 
32
 #include <sys/types.h>
 
33
+#include <unistd.h>
 
34
 #include <sys/time.h>       /* struct timeval */
 
35
 #include <sys/resource.h>   /* getrusage() */
 
36
 #include <stdlib.h>         /* malloc(3) */
 
37
@@ -420,6 +421,10 @@ void SaveRecvPtr(ArgStruct* p);
 
38
 
 
39
 void ResetRecvPtr(ArgStruct* p);
 
40
 
 
41
+void AfterAlignmentInit(ArgStruct* p);
 
42
+
 
43
+/* void InitBufferData(ArgStruct *p, int nbytes); */
 
44
+
 
45
 void PrintUsage();
 
46
 
 
47
 int getopt( int argc, char * const argv[], const char *optstring);
 
48
--- netpipe-3.7.2.orig/src/netpipe.c
 
49
+++ netpipe-3.7.2/src/netpipe.c
 
50
@@ -145,7 +145,7 @@ int main(int argc, char **argv)
 
51
                       printf("Performance measured without cache effects\n\n"); fflush(stdout);
 
52
                       break;
 
53
 
 
54
-            case 'o': strcpy(s,optarg);
 
55
+            case 'o': memset(s,0,sizeof(s));strncpy(s,optarg,sizeof(s)-1);
 
56
                       printf("Sending output to %s\n", s); fflush(stdout);
 
57
                       break;
 
58