Hi NAC,
Here it comes that talk of "using your preferred editor". There are several editors in the "*nix/*nux" world.
If you don't have one, I suggest you to use "vi". It's the most ancient editor; you may feel a bit lost with it until you get familiar with it. However, after you know it, you will ask yourself how could you live until today without knowing it.
There are several tutorials of it on the internet.
For this operation, basically you have to know that vi, different of other editors, has 2 modes of operation: command and edit. Every time you open a vi session you are in command mode; there are several ways to enter the edit mode, depending on your purpose, but you will return into command mode pressing "Esc" key.
After you go into the directory where is the file modem.c, type
You will see a page with the line 1701 near the middle of it; the cursor will be on that line. Type
You will see the line numbers at the left of the line. Type
The line will be deleted and copied into the vi buffer. Use the upper arrow key to go over the line 1698; type upper case
and the line will appear over the sequence 1698.
Now, if you are confident of the result, type
to save and exit; if not type
to exit without save.
It's important, as reference, you use vi with "caps lock" off. Every time you use a commands started with ":", the cursor will jump to the bottom line of the screen and it will wait for <enter> before proceed. Other commands will not appear as you type it and will execute as soon as you type it.
For instance, the line which must be moved is like this
Code:
static int sregs_init(unsigned char sregs[]);
Don't be afraid and good luck!