I had the following error when trying to patch slmodem 2.9.9d:
Code:
[root@localhost slmodem-2.9.9d]# patch -p0 < slmodem-2.9.9d-patch
can't find file to patch at input line 7
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -wru slmodem-2.9.9d_orig/modem/modem.c
|slmodem-2.9.9d/modem/modem.c
|--- slmodem-2.9.9d_orig/modem/modem.c 2005-04-23
|04:14:29.000000000 +0300
|+++ slmodem-2.9.9d/modem/modem.c 2005-06-20
|17:09:33.000000000 +0300
--------------------------
File to patch: /root/slmodem-2.9.9d/modem/modem.c
patching file /root/slmodem-2.9.9d/modem/modem.c
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 1598.
1 out of 1 hunk FAILED -- saving rejects to file /root/slmodem-2.9.9d/modem/modem.c.rej
[root@localhost slmodem-2.9.9d]#
The 'modem.c.rej' content is the following:
Code:
***************
*** 1598,1607 ****
return 0;
}
int modem_reset(struct modem *m)
{
- static int sregs_init(unsigned char sregs[]);
MODEM_DBG("modem reset...\n");
if(m->state != STATE_MODEM_IDLE)
--- 1598,1607 ----
return 0;
}
+ static int sregs_init(unsigned char sregs[]);
int modem_reset(struct modem *m)
{
MODEM_DBG("modem reset...\n");
if(m->state != STATE_MODEM_IDLE)
Does someone know how to patch the driver and solve this problem??
Thanks in advance.