summaryrefslogtreecommitdiff
blob: aca21f6de8f5a1a8f7f9cf6a2b32eea3889602e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: proc/escape.c
===================================================================
RCS file: /cvsroot/procps/procps/proc/escape.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- proc/escape.c	4 Nov 2004 20:50:59 -0000	1.5
+++ proc/escape.c	5 Jan 2005 21:11:21 -0000	1.6
@@ -159,7 +159,7 @@
 // escape an argv or environment string array
 //
 // bytes arg means sizeof(buf)
-int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t bytes, size_t *cells){
+int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t bytes, int *cells){
   size_t i = 0;
 
   for(;;){
Index: proc/escape.h
===================================================================
RCS file: /cvsroot/procps/procps/proc/escape.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- proc/escape.h	4 Nov 2004 20:50:59 -0000	1.4
+++ proc/escape.h	5 Jan 2005 21:11:21 -0000	1.5
@@ -12,7 +12,7 @@
 #define ESC_BRACKETS 0x2  // if using cmd, put '[' and ']' around it
 #define ESC_DEFUNCT  0x4  // mark zombies with " <defunct>"
 
-extern int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t n, size_t *cells);
+extern int escape_strlist(char *restrict dst, const char *restrict const *restrict src, size_t n, int *cells);
 extern int escape_str(char *restrict dst, const char *restrict src, int bufsize, int *maxcells);
 extern int escape_command(char *restrict const outbuf, const proc_t *restrict const pp, int bytes, int *cells, unsigned flags);