exchange service | 10 Apr 21:54
Picon

Terminal color scheme

Greet.
How about change default color scheme on something more beauty ?

Here my little patch with nice color solution.

GL.

Attachment (PrefHandler.cpp): application/octet-stream, 8 KiB
Waldemar Kornewald | 27 Feb 15:09
Favicon

list admin

Hi,
could the list admin please contact me, privately? Thanks!

Bye,
Waldemar Kornewald

Jérôme Duval | 12 Dec 11:16
Favicon

Re: Mouse retry

sorry for the scrambed mails

Hello,

i completed the Mouse preferences app implementation.
If you are interested, you can test it against the original.
Thanks,

Regards,
Jerome

ps : source is in cvs

korli | 12 Dec 09:08
Favicon

Re:[openbeos-preferences] Re: Mouse retry

Hello,=0D=0A=0D=0Ai completed the Mouse preferences app implementation.=0D=
=0AIf you are interested, you can test it against the original.=0D=0AThan=
ks,=0D=0A=0D=0ARegards,=0D=0AJerome=0D=0A=0D=0Aps : source is in cvs=0D=0A=
=0A=0A********** L'ADSL A 20 EUR/MOIS********** =0AAvec Tiscali, l'ADSL e=
st =E0 20 EUR/mois. Vous pourrez chercher longtemps avant de trouver moin=
s cher ! =0APour profiter de cette offre exceptionnelle, cliquez ici : ht=
tp://register.tiscali.fr/adsl/=0AOffre soumise =E0 conditions.=0A

korli | 11 Dec 10:12
Favicon

[openbeos-preferences] Mouse

Hello,=0D=0A=0D=0Ai completed the Mouse preferences app implementation.=0D=
=0AIf you are interested, you can test it against the original.=0D=0AThan=
ks,=0D=0A=0D=0ARegards,=0D=0AJerome=0D=0A=0D=0Aps : source is in cvs=0A=0A=
********** L'ADSL A 20 EUR/MOIS********** =0AAvec Tiscali, l'ADSL est =E0=
 20 EUR/mois. Vous pourrez chercher longtemps avant de trouver moins cher=
 ! =0APour profiter de cette offre exceptionnelle, cliquez ici : http://r=
egister.tiscali.fr/adsl/=0AOffre soumise =E0 conditions.=0A

Niels Reedijk | 30 Nov 22:17
Picon

Codycam Warning fixes

Hi,

I've fixed a whole number of warnings.

patch-1
    Fix numerous warnings in codycam

Can I merge these with the main cvs repository?

Niels

--- orig/CodyCam.cpp
+++ mod/CodyCam.cpp
@@ -93,9 +93,6 @@
 CodyCam::ReadyToRun()
 {
        /* create the window for the app */
-       uint32 x = WINDOW_SIZE_X;
-       uint32 y = WINDOW_SIZE_Y;
-
        fWindow = new VideoWindow(BRect(28, 28, 28 + (WINDOW_SIZE_X-1), 
28 + (WINDOW_SIZE_Y-1)),
                                                                (const 
char *)"CodyCam", B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE, &
fPort);

@@ -127,8 +124,6 @@
 void
 CodyCam::MessageReceived(BMessage *message)
 {
-       status_t status;
-
        switch (message->what)
        {
                case msg_start:
@@ -368,7 +363,7 @@
 ErrorAlert(const char * message, status_t err)
 {
        char msg[256];
-       sprintf(msg, "%s\n%s [%x]", message, strerror(err), err);
+       sprintf(msg, "%s\n%s [%lx]", message, strerror(err), err);
        (new BAlert("", msg, "Quit"))->Go();
        be_app->PostMessage(B_QUIT_REQUESTED);
 }
@@ -424,9 +419,9 @@

 VideoWindow::VideoWindow (BRect frame, const char *title, window_type 
type, uint32 flags, port_id * consumerport) :
        BWindow(frame,title,type,flags),
+       fPortPtr(consumerport),
        fView(NULL),
-       fVideoView(NULL),
-       fPortPtr(consumerport)
+       fVideoView(NULL)
 {
        fFtpInfo.port = 0;
        fFtpInfo.rate = 0x7fffffff;
@@ -519,7 +514,6 @@
 VideoWindow::MessageReceived(BMessage *message)
 {
        BControl        *p;
-       uint32          index;

        p = NULL;
        message->FindPointer((const char *)"source",(void **)&p);
@@ -868,7 +862,6 @@
 ControlWindow::MessageReceived(BMessage * message)
 {
        BParameterWeb * web = NULL;
-       BView * panel = NULL;
        status_t err;

        switch (message->what)

--- orig/FtpClient.cpp
+++ mod/FtpClient.cpp
@@ -44,7 +44,7 @@
 {
        bool rc = false;
        string cmd, replystr;
-       int code, codetype, i, numread;
+       int code, codetype, numread;
        char buf[513];

        cmd = "TYPE A";
@@ -453,7 +453,7 @@

        if(m_control != 0)
        {
-               if(cmd.find("PASS") != -1)
+               if(cmd.find("PASS") != string::npos)
                        printf("PASS <suppressed>  (real password sent)
\n");
                else
                        printf("%s\n", ccmd.c_str());
@@ -607,7 +607,6 @@
        unsigned short port;
        BNetAddress addr;
        int i, code, codetype;
-       char buf[32];
        bool rc = false;
        struct sockaddr_in sa; 

--- orig/VideoConsumer.cpp
+++ mod/VideoConsumer.cpp
@@ -43,21 +43,21 @@
        BMediaNode(name),
        BMediaEventLooper(),
        BBufferConsumer(B_MEDIA_RAW_VIDEO),
-       mView(view),
-       mWindow(NULL),
        mStatusLine(statusLine),
        mInternalID(internal_id),
        mAddOn(addon),
-       mTimeToFtp(false),
-       mFtpComplete(true),
-       mRate(1000000),
-       mImageFormat(0),
-       mTranslator(0),
-       mPassiveFtp(true),
        mConnectionActive(false),
        mMyLatency(20000),
+       mWindow(NULL),
+       mView(view),
+       mOurBuffers(false),
        mBuffers(NULL),
-       mOurBuffers(false)
+       mTimeToFtp(false),
+       mFtpComplete(true),
+       mRate(1000000),
+        mImageFormat(0),
+        mTranslator(0),
+        mPassiveFtp(true)
 {
        FUNCTION("VideoConsumer::VideoConsumer\n");

@@ -85,7 +85,6 @@
 VideoConsumer::~VideoConsumer()
 {
        FUNCTION("VideoConsumer::~VideoConsumer\n");
-       status_t status;

        Quit();

@@ -196,6 +195,9 @@

ERROR("VideoConsumer::RequestCompleted: Not using our buffers!\n");
                        }
                        break;
+               default:
+                       ERROR("VideoConsumer::RequestCompleted: Invalid 
argument\n");
+                       break;
        }
        return B_OK;
 }
@@ -240,7 +242,7 @@
 void
 VideoConsumer::BufferReceived(BBuffer * buffer)
 {
-       LOOP("VideoConsumer::Buffer #%d received\n", buffer->ID());
+       LOOP("VideoConsumer::Buffer #%ld received\n", buffer->ID());

        if (RunState() == B_STOPPED)
        {
@@ -284,7 +286,6 @@
        // create a buffer group
        uint32 mXSize = with_format.u.raw_video.display.line_width;
        uint32 mYSize = with_format.u.raw_video.display.line_count;
-       uint32 mRowBytes = 
with_format.u.raw_video.display.bytes_per_row;
        color_space mColorspace = 
with_format.u.raw_video.display.format;
        PROGRESS("VideoConsumer::CreateBuffers - Colorspace = %d\n", 
mColorspace);

@@ -317,7 +318,7 @@
                }
                else
                {
-                       ERROR("VideoConsumer::CreateBuffers - ERROR 
CREATING VIDEO RING BUFFER: %08x\n", status);
+                       ERROR("VideoConsumer::CreateBuffers - ERROR 
CREATING VIDEO RING BUFFER: %08lx\n", status);
                        return B_ERROR;
                }
        }
@@ -330,7 +331,7 @@
                        if (buffList[j] != NULL)
                        {
                                mBufferMap[j] = (uint32) buffList[j];
-                               PROGRESS(" j = %d buffer = %08x\n", j, 
mBufferMap[j]);
+                               PROGRESS(" j = %d buffer = %08lx\n", j, 
mBufferMap[j]);
                        }
                        else
                        {
@@ -350,7 +351,6 @@
 VideoConsumer::DeleteBuffers()
 {
        FUNCTION("VideoConsumer::DeleteBuffers\n");
-       status_t status;

        if (mBuffers)
        { 

Niels Reedijk | 30 Nov 18:47
Picon

bin cleanup (#2)

Here's the complete /bin cleanup.

I've cleaned up most of the warnings except some in the gnu utilities, 
and some I haven't yet
understood. For completeness I included the complete changelog of the 
bin-applications--fixes tree, and a complete diff. All the changes are 
trivial and shouldn't (and probably couldn't) effect the working of the 
programs. Can someone (sikosis) give me the green light?

(I haven't found out how to do the diffs with arch yet, so I'm just 
sticking to the cvs diff now)

Niels

patch-1
    Fix warning
patch-2
    Fix warning in roster.cpp
patch-3
    Fix warning in clipboard.cpp
patch-4
    Fix warning in shutdown.cpp (trivial)
patch-5
    Fix warnings in chop.c (trivial)
patch-6
    Trivial warning fix in eject.c
patch-7
    Trivial warning fix in hd.c
patch-8
    Trivial warning fixes in listarea.c
patch-9
    TRIVIAL: Fix warning in listimage.c
patch-10
    TRIVIAL warning fix in listport.c
patch-11
    TRIVIAL fix in listsem.c
patch-12
    TRIVIAL fix in mount.c
patch-13
    Trivial fix in prio.c
patch-14
    TRIVIAL changes in ps.c
patch-15
    TRIVIAL fix in renice.c
patch-16
    TRIVIAL fix for rescan
patch-17
    TRIVIAL fix in sysinfo.c
patch-18
    TRIVIAL fix in unchop.c
patch-19
    TRIVIAL fix in chkbfs
patch-20
    TRIVIAL fixes for listdev
patch-21
    TRIVIAL fixes in pc 

===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/chop.c,v
retrieving revision 1.2
diff -r1.2 chop.c
42a43,44
> #include <stdlib.h>
> #include <string.h>
183c185
<       int  fdout;                  // output file descriptor
---
>       int  fdout = -1;             // output file descriptor
189c191
<       off_t   curr_written;        // number of bytes written to the 
current output file
---
>       off_t   curr_written = 0;    // number of bytes written to the 
> current output file
Index: clipboard.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/clipboard.cpp,v
retrieving revision 1.2
diff -r1.2 clipboard.cpp
160a161,163
>                               default:        //Shouldn't happen
>                                       Status::Code = B_BAD_VALUE;
>                                       break;
Index: df.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/df.cpp,v
retrieving revision 1.2
diff -r1.2 df.cpp
208c208
<                               sprintf(temp, "%.1LfK", fblocks);
---
>                               sprintf(temp, "%.1fK", fblocks);
212c212
<                                       sprintf(temp, "%.1LfM", 
fblocks);
---
>                                       sprintf(temp, "%.1fM", 
> fblocks);
215c215
<                                       sprintf(temp, "%.1LfG", 
fblocks);
---
>                                       sprintf(temp, "%.1fG", 
> fblocks);
Index: eject.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/eject.c,v
retrieving revision 1.2
diff -r1.2 eject.c
22c22
< int usage(char *prog)
---
> static int usage(char *prog)
Index: hd.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/hd.c,v
retrieving revision 1.2
diff -r1.2 hd.c
16a17,18
> #include <stdlib.h>
> #include <string.h>
139c141
<       printf("%08x ", offset);
---
>       printf("%08lx ", offset);
Index: listarea.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listarea.c,v
retrieving revision 1.2
diff -r1.2 listarea.c
61c61
<       printf("memory: total: %4dKB, used: %4dKB, left: %4dKB\n", max, 
used, left);
---
>       printf("memory: total: %4ldKB, used: %4ldKB, left: %4ldKB\n", 
> max, used, left);
73c73
<               printf("\nteam %d unknown\n", id);
---
>               printf("\nteam %ld unknown\n", id);
77c77
<       printf("\nTEAM %4d (%s):\n", id, this_team.args);
---
>       printf("\nTEAM %4ld (%s):\n", id, this_team.args);
82c82
<               printf("%5d %29s %.8x %8x %8x %5d %5d %5d\n",
---
>               printf("%5ld %29s %p %8lx %8lx %5ld %5ld %5ld\n",
Index: listimage.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listimage.c,v
retrieving revision 1.3
diff -r1.3 listimage.c
54c54
<               printf("\nCould not retrieve information about team 
%ld: \n", id, strerror(status));
---
>               printf("\nCould not retrieve information about team 
> %ld: %s\n", id, strerror(status));
58c58
<       printf("\nTEAM %4d (%s):\n", id, teamInfo.args);
---
>       printf("\nTEAM %4ld (%s):\n", id, teamInfo.args);
63c63
<               printf("%5d %64s %.8x %.8x %4d %10u\n",
---
>               printf("%5ld %64s %p %p %4ld %10lu\n",
Index: listport.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listport.c,v
retrieving revision 1.2
diff -r1.2 listport.c
60c60
<       printf("port: total: %5d, used: %5d, left: %5d\n", max, used, 
left);
---
>       printf("port: total: %5ld, used: %5ld, left: %5ld\n", max, 
> used, left);
72c72
<               printf("\nteam %d unknown\n", id);
---
>               printf("\nteam %ld unknown\n", id);
76c76
<       printf("\nTEAM %4d (%s):\n", id, this_team.args);
---
>       printf("\nTEAM %4ld (%s):\n", id, this_team.args);
81c81
<               printf("%5d %28s  %8d  %6d\n",
---
>               printf("%5ld %28s  %8ld  %6ld\n",
Index: listsem.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listsem.c,v
retrieving revision 1.1
diff -r1.1 listsem.c
34a35
> #include <stdlib.h>
37c38
< void list_sems(team_info *tinfo)
---
> static void list_sems(team_info *tinfo)
42c43
<       printf("TEAM  %d (%s):\n", tinfo->team, tinfo->args );
---
>       printf("TEAM  %ld (%s):\n", tinfo->team, tinfo->args );
48c49
<               printf("%7d%31s%7d\n", info.sem ,info.name , info.count 
);
---
>               printf("%7ld%31s%7ld\n", info.sem ,info.name , 
> info.count );
62c63
<       printf("sem: total: %5i, used: %5i, left: %5i\n\n", 
sysinfo.max_sems, sysinfo.used_sems, sysinfo.max_sems - 
sysinfo.used_sems);
---
>       printf("sem: total: %5li, used: %5li, left: %5li\n\n", 
> sysinfo.max_sems, sysinfo.used_sems, sysinfo.max_sems - 
sysinfo.used_sems);
Index: mount.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/mount.c,v
retrieving revision 1.1
diff -r1.1 mount.c
20c20
< void
---
> static void
Index: prio.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/prio.c,v
retrieving revision 1.1
diff -r1.1 prio.c
16a17
> #include <stdlib.h>
Index: ps.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/ps.c,v
retrieving revision 1.3
diff -r1.3 ps.c
51c51
<               printf("%s (team %d) (uid %d) (gid %d)\n", 
teaminfo.args, teaminfo.team, teaminfo.uid, teaminfo.gid);
---
>               printf("%s (team %ld) (uid %d) (gid %d)\n", 
> teaminfo.args, teaminfo.team, teaminfo.uid, teaminfo.gid);
58c58
<                       printf("%7ld %20s  %3s %3d %7lli %7lli ", 
thinfo.thread, thinfo.name, thstate, thinfo.priority, thinfo.user_time/
1000, thinfo.kernel_time/1000);
---
>                       printf("%7ld %20s  %3s %3ld %7lli %7lli ", 
> thinfo.thread, thinfo.name, thstate, thinfo.priority, thinfo.user_time/
1000, thinfo.kernel_time/1000);
61c61
<                               printf("%s(%d)\n", sinfo.name, 
sinfo.sem);
---
>                               printf("%s(%ld)\n", sinfo.name, 
> sinfo.sem);
69,71c69,71
<       printf("%ik (%li bytes) total memory\n", sysinfo.max_pages*
B_PAGE_SIZE/1024, sysinfo.max_pages*B_PAGE_SIZE);
<       printf("%ik (%li bytes) currently committed\n", 
sysinfo.used_pages*B_PAGE_SIZE/1024, sysinfo.used_pages*B_PAGE_SIZE);
<       printf("%ik (%li bytes) currently available\n", 
(sysinfo.max_pages-sysinfo.used_pages)*B_PAGE_SIZE/1024, 
(sysinfo.max_pages-sysinfo.used_pages)*B_PAGE_SIZE);
---
>       printf("%lik (%li bytes) total memory\n", sysinfo.max_pages*
> B_PAGE_SIZE/1024, sysinfo.max_pages*B_PAGE_SIZE);
>       printf("%lik (%li bytes) currently committed\n", 
> sysinfo.used_pages*B_PAGE_SIZE/1024, sysinfo.used_pages*B_PAGE_SIZE);
>       printf("%lik (%li bytes) currently available\n", 
> (sysinfo.max_pages-sysinfo.used_pages)*B_PAGE_SIZE/1024, 
(sysinfo.max_pages-sysinfo.used_pages)*B_PAGE_SIZE);
Index: renice.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/renice.c,v
retrieving revision 1.2
diff -r1.2 renice.c
17a18
> #include <string.h>
52c53
< int32 prio_be_to_unix(int32 prio)
---
> static int32 prio_be_to_unix(int32 prio)
58c59
< int32 prio_unix_to_be(int32 prio)
---
> static int32 prio_unix_to_be(int32 prio)
63c64
< status_t renice_thread(int32 prio, int32 increment, bool use_be_prio, 
thread_id th)
---
> static status_t renice_thread(int32 prio, int32 increment, bool 
> use_be_prio, thread_id th)
Index: rescan.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/rescan.c,v
retrieving revision 1.1
diff -r1.1 rescan.c
3a4
> #include <unistd.h>
Index: roster.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/roster.cpp,v
retrieving revision 1.1
diff -r1.1 roster.cpp
28d27
<       app_info *pinfo = &info;
Index: shutdown.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/shutdown.cpp,v
retrieving revision 1.5
diff -r1.5 shutdown.cpp
412c412
<               thread_id BApp_thread;
---
>               thread_id BApp_thread = -1;
Index: sysinfo.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/sysinfo.c,v
retrieving revision 1.4
diff -r1.4 sysinfo.c
14a15
> #include <string.h>
244c245
<                       fprintf(stderr, "cpuid_info(, %ld, %ld): error 
0x%08lx\n", 0, i, ret);
---
>                       fprintf(stderr, "cpuid_info(, %d, %d): error 
> 0x%08lx\n", 0, i, ret);
253c254
<                               fprintf(stderr, "cpuid_info(, %ld, 
%ld): error 0x%08lx\n", j, i, ret);
---
>                               fprintf(stderr, "cpuid_info(, %d, %d): 
> error 0x%08lx\n", j, i, ret);
269c270
<                               fprintf(stderr, "cpuid_info(, %ld, 
%ld): error 0x%08lx\n", 0x80000000, i, ret);
---
>                               fprintf(stderr, "cpuid_info(, %d, %d): 
> error 0x%08lx\n", 0x80000000, i, ret);
277c278
<                               fprintf(stderr, "cpuid_info(, %ld, 
%ld): error 0x%08lx\n", 0x80000000+j, i, ret);
---
>                               fprintf(stderr, "cpuid_info(, %d, %d): 
> error 0x%08lx\n", 0x80000000+j, i, ret);
287c288
<               printf("\ttype %u, family %u, model %u, stepping %u, 
features 0x%08x\n",
---
>               printf("\ttype %u, family %u, model %u, stepping %u, 
> features 0x%08lx\n",
296c297
<                       printf("\ttype %u, family %u, model %u, 
stepping %u, features 0x%08x\n",
---
>                       printf("\ttype %u, family %u, model %u, 
> stepping %u, features 0x%08lx\n",
339c340
<                               fprintf(stderr, "cpuid_info(, %ld, 
%ld): error 0x%08lx\n", 2, i, ret);
---
>                               fprintf(stderr, "cpuid_info(, %d, %d): 
> error 0x%08lx\n", 2, i, ret);
Index: unchop.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/unchop.c,v
retrieving revision 1.2
diff -r1.2 unchop.c
16a17
> #include <string.h>
26c27
< char *temp_file   ();
---
> char *temp_file   (void);
169c170
< temp_file()
---
> temp_file(void)
cvs server: Diffing addattr
cvs server: Diffing arp
cvs server: Diffing chkbfs
Index: chkbfs/chkbfs.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/chkbfs/chkbfs.cpp,v
retrieving revision 1.3
diff -r1.3 chkbfs.cpp
30c30
<               fprintf(stderr, "%s: could not stat device: %s\n", 
gProgramName, name, errno);
---
>               fprintf(stderr, "%s: could not stat device: %s: %s\n", 
> gProgramName, name, strerror(errno));
215c215
<       printf("checked %ld nodes, %Ld blocks not allocated, %Ld blocks 
already set, %Ld blocks could be freed\n",
---
>       printf("checked %Ld nodes, %Ld blocks not allocated, %Ld blocks 
> already set, %Ld blocks could be freed\n",
cvs server: Diffing desklink
cvs server: Diffing gnu
cvs server: Diffing gzip
cvs server: Diffing ifconfig
cvs server: Diffing listdev
Index: listdev/cm_wrapper.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listdev/
cm_wrapper.c,v
retrieving revision 1.1
diff -r1.1 cm_wrapper.c
7a8
> #include "cm_wrapper.h"
Index: listdev/listdev.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listdev/listdev.c,v
retrieving revision 1.1
diff -r1.1 listdev.c
10a11
> #include "cm_wrapper.h"
67c68
<                       printf("\n  io range:  min %x max %x align %x 
len %x",
---
>                       printf("\n  io range:  min %lx max %lx align 
> %lx len %lx",
78c79
<                       printf("\n  mem range: min %x max %x align %x 
len %x",
---
>                       printf("\n  mem range: min %lx max %lx align 
> %lx len %lx",
159c160
<       int i;
---
>       unsigned int i;
186c187
<       printf("%x configurations\n", possible->num_possible);
---
>       printf("%lx configurations\n", possible->num_possible);
cvs server: Diffing makeudfimage
cvs server: Diffing mkdos
cvs server: Diffing pc
Index: pc/pc.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/pc/pc.c,v
retrieving revision 1.1
diff -r1.1 pc.c
176c176
< int
---
> static int
216c216
< void
---
> static void
256c256
<   char *buff, *fmt_str;
---
>   char *buff;
282d281
<   int ret;
334,335c333,334
<   ULONG val, sum = 0;
<   char op, *orig_str;
---
>   ULONG val;
>   char *orig_str;
841c840
<      int i;
---
>      unsigned int i;
857c856
<               "long (max len == %d bytes)\n", sizeof(LONG));
---
>               "long (max len == %ld bytes)\n", sizeof(LONG));

Niels Reedijk | 30 Nov 00:27
Picon

bin cleanup

Hi,

I was stuck (once again) with the USB stack, so I decided to go and 
fool around somewhat
with arch (alternative to cvs www.gnu.org/software/gnu-arch). I tried 
fixing the warnings that would be spit out when compiling /current/src/
apps/bin/, and here's the first part of the
fixes:

patch-1
    Fix warning df.cpp
patch-2
    Fix warning in roster.cpp
patch-3
    Fix warning in clipboard.cpp
patch-4
    Fix warning in shutdown.cpp (trivial)
patch-5
    Fix warnings in chop.c (trivial)
patch-6
    Trivial warning fix in eject.c
patch-7
    Trivial warning fix in hd.c
patch-8
    Trivial warning fixes in listarea.c 

They're all trivial fixes anyway. The diff is included below. May I 
merge (and commit) the changes to cvs? If not, please let me know which 
ones can be committed. Thanks a lot.

Niels

P.S. I'll see if I can continue this round of fixing tomorrow

Here's the diff (long)
Index: chop.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/chop.c,v
retrieving revision 1.2
diff -r1.2 chop.c
42a43,44
> #include <stdlib.h>
> #include <string.h>
183c185
<       int  fdout;                  // output file descriptor
---
>       int  fdout = -1;             // output file descriptor
189c191
<       off_t   curr_written;        // number of bytes written to the 
current output file
---
>       off_t   curr_written = 0;    // number of bytes written to the 
> current output file
Index: clipboard.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/clipboard.cpp,v
retrieving revision 1.2
diff -r1.2 clipboard.cpp
160a161,163
>                               default:        //Shouldn't happen
>                                       Status::Code = B_BAD_VALUE;
>                                       break;
Index: df.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/df.cpp,v
retrieving revision 1.2
diff -r1.2 df.cpp
208c208
<                               sprintf(temp, "%.1LfK", fblocks);
---
>                               sprintf(temp, "%.1fK", fblocks);
212c212
<                                       sprintf(temp, "%.1LfM", 
fblocks);
---
>                                       sprintf(temp, "%.1fM", 
> fblocks);
215c215
<                                       sprintf(temp, "%.1LfG", 
fblocks);
---
>                                       sprintf(temp, "%.1fG", 
> fblocks);
Index: eject.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/eject.c,v
retrieving revision 1.2
diff -r1.2 eject.c
22c22
< int usage(char *prog)
---
> static int usage(char *prog)
Index: hd.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/hd.c,v
retrieving revision 1.2
diff -r1.2 hd.c
16a17,18
> #include <stdlib.h>
> #include <string.h>
139c141
<       printf("%08x ", offset);
---
>       printf("%08lx ", offset);
Index: listarea.c
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/listarea.c,v
retrieving revision 1.2
diff -r1.2 listarea.c
61c61
<       printf("memory: total: %4dKB, used: %4dKB, left: %4dKB\n", max, 
used, left);
---
>       printf("memory: total: %4ldKB, used: %4ldKB, left: %4ldKB\n", 
> max, used, left);
73c73
<               printf("\nteam %d unknown\n", id);
---
>               printf("\nteam %ld unknown\n", id);
77c77
<       printf("\nTEAM %4d (%s):\n", id, this_team.args);
---
>       printf("\nTEAM %4ld (%s):\n", id, this_team.args);
82c82
<               printf("%5d %29s %.8x %8x %8x %5d %5d %5d\n",
---
>               printf("%5ld %29s %p %8lx %8lx %5ld %5ld %5ld\n",
Index: roster.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/roster.cpp,v
retrieving revision 1.1
diff -r1.1 roster.cpp
28d27
<       app_info *pinfo = &info;
Index: shutdown.cpp
===================================================================
RCS file: /cvsroot/open-beos/current/src/apps/bin/shutdown.cpp,v
retrieving revision 1.5
diff -r1.5 shutdown.cpp
412c412
<               thread_id BApp_thread;
---
>               thread_id BApp_thread = -1; 

Jan-Rixt Van Hoye | 17 Sep 13:01
Picon

Re: [openbeos] Re: Con

Hi Charlie

You have a point there. Many people want to help, and at the end many 'fail'in doing that. This is the risk you
have with volunteers and this is something you have to deal with... But I believe that there is a 'system'
that could help accelerate the development of an 'Os' or an 'application'. If you do your best to get 'new'
developers, less work should be done by every individual developer. If  someone doesn't have the time
anymore, another one could take it over very easy and fast. Now you have 1 person/application and it last
months when somenone wants to continue with that 1 application. When you do your best to get more
developers, you could have the situation that you have 2 or more persons per application. This is maybe a
dream, but who does not try, does not know ... 
And if you want to attrackt more people to help, you need to do something for that. 
I don't say that the OBOS-site is bad. I can say that it is very good structured and easy to find things(good
work Phil!). The only thing I miss, is that it is difficult for new developers to join the team. 

grtz
      Jan-Rixt(JR)

P.S: Sorry for those who always gets my emails twice, but I want to be sure  that everyone of openbeos and the
preferences-team gets my email.

------------------------
 openbeos-preferences@... wrote:
------------------------
On 2003-09-17 at 09:43:00 [+0000], Jan-Rixt Van Hoye wrote:
>> Hi!
>>=20
>> Many thanks for the many reactions on my mail. If everything goes well,
> I=20
>> can start at the preferences team(thx Sikosis). What I see is that ther
>e=20
>> are some "small problems" with OpenBeOs Management. I am new to this20
>> community, but I can say that I am following it since Be Inc "stopped".
> I=20
>> love BeOs, but on new systems, it does not work good anymore. I am very
>=20
>> glad to see that there is a group of volunteers that want to make Beos20
>> "competitive" again. But this is "shit" we hear every time. What I see20
>> and hear now is that some things don't go very well and these are:
>>=20
>> 1) Communication problem with the management. We hear everything in "be
>os=20
>> news-sites" but nothing on the "OpenBeos-site"
>> Solution: A good and UP-TO-DATE news forum with easy acces. What I mean
>=20
>> is not a newsletter( the ones that exists are very good for those who a
>re=20
>> developing). I mean, if someone leave a team or gets into it, this shou
>ld=20
>> be posted in a central place. And not somewhere in a 'dark corner' of t
>he=20
>> site. A potential developer should have the possibility to send a mail 
>to=20
>> the "right" responsable team-manager. There should not be old email=2
>0
>> addresses.
>>=20
>> 2) There is no easy way to contribute to the project.
>> Solution: A webpage where you are able to fill in your interests and in
>=20
>> which team you want to work. When you "submit", a mail should be sent t
>o=20
>> the responsable team-leader
>=20
>Hey Jan-Rixt,
>
>those are all valid points but please remember that resources are limited
>=20
>and managing Open Source really is like herding cats. One of things OBOS20
>has suffered from thus far is not enuff commitment from developers: peopl
>e=20
>who've signed up to something but either lost interest or never had it in
>=20
>the first place. That said Phil does a great job with his website, I thin
>k=20
>it's the best of the various teams and he does respond actively to people
>..
>
>One thing you might like to know about is that OBOS developers (well the20
>European ones) do actually meet up generally at BeGeistert and you might20
>like to come along to the next one to meet a few of them seeing as you're
>=20
>just down the road.
>
>Charlie
>--=20
>Charlie Clark
>Chief Chaos Coordinator
>BeGeistert.org
>BeGeistert 011 - NeXTsteps
>D=FCsseldorf 18 - 19.10.2003
>http://www.begeistert.org/

Picon

Contribution to preferences or app/interface team

Hi!

I'd like to contribute to the preferences-team or the app/interface team. I've already mailed Andrew
Edward McCall, Aaron Kavlie(email-address does not exist) and Rich Kosiba. None of them gave me an
answer. Can somebody help me please? Who do I have te mail to be able to contribute to one of the teams? Or what
do I have to do?

thx
    Jan-Rixt

Picon

New task

Hello,

As Michael Wilber is going to finish ShowImage, I'd like to know if there
are some simple application to work on...

Fernando F.Oliveira
fernando@...


Gmane